我使用Stimulsoft为我的项目,但这个problam停止了我的项目
我的代码:
string cn1 = @"data source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\Report.mrt;integrated security=True;connect timeout=30;Encrypt=False;TrustServerCertificate=False;MultipleActiveResultSets=True;";
stiReport1.Load("Report.mrt");
stiReport1.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("Connection11", cn1));
stiReport1.Dictionary.Variables["Variable1"].Value =textBox1.Text;
stiReport1.Render(false);
this.stiViewerControl1.Report = stiReport1;
this.stiViewerControl1.Refresh();
当我运行并填充文本框并提交时: 列名称'اهواز'无效。
请帮帮我
答案 0 :(得分:0)
在from string import ascii_lowercase # a-z string
VALID = set(ascii_lowercase)
with open('test.txt', 'r') as fin:
counter = {}
for char in (char.lower() for line in fin for char in line):
if char in VALID:
# add the letter to dict
# dict.get used to either get the current count value
# or default to 0. Saves checking if it is in the dict already
counter[char] = counter.get(char, 0) + 1
# sort the values by occurrence in descending order
data = sorted(counter.items(), key = lambda t: t[1], reverse = True)
print(data)
Designer
DataSource
列名称