【问题标题】:stimulsoft report doesnt update the reportstimulsoft 报告不更新报告
【发布时间】:2017-04-30 13:00:17
【问题描述】:

I have a combobox with list of customers, when choose a specific customer and make a query and send it to stimulsoft to create a report, it works correctly, but when I close the report and choose another customer the report still show the以前客户的报告,不更新它。
直到我关闭表单并重新打开它,然后选择其他客户,但是当我选择其他客户时,它又不能正常工作了。

var results = (from x in asdb.TblCustomers
                           where x.CustID == (int)rddCustName.SelectedValue
                           select x).ToList();

            stiSpecCust.Load("Reports//SpecCustM.mrt");
            stiSpecCust.RegBusinessObject("DT", "DT", results);
            stiSpecCust.Render();
            stiSpecCust.Show();

【问题讨论】:

  • 你试过在 RegBusinessObject 之前stiSpecCust.Dictionary.DataSources.Clear() 和之后stiSpecCust.Dictionary.Synchronize() 吗?
  • 没什么区别。

标签: c# winforms stimulsoft


【解决方案1】:

我找到了解决办法:

我们必须在 RegBusinessObject 之前添加这个:

stiSpecCust.BusinessObjectsStore.Clear();

【讨论】:

    【解决方案2】:

    试试这个: 在路径之后,参数会这样做

     stiSpecCust.Compile();
     stiSpecCust.Render();
     stiSpecCust.Show();
    

    渲染前需要编译

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-26
      • 2018-04-16
      • 1970-01-01
      • 2022-01-15
      相关资源
      最近更新 更多