Page 1 of 1

Trouble with the StiViewerControl

Posted: Thu Jun 13, 2013 9:36 am
by DHarvey
Hi,

I am having a bit of troubles with the StiViewerControl.

I have two variables:

One is a list of items that have no data sources; manually inserted into the variable.
The second is a data bound list of items from a SQL Data.

When the report loads into the StiViewerControl the variable item which is data bound to the data source is not populated. The items which are manually inserted into the variable are fine and display on the display of the report.

I have attached a document which should explain my problem. To get around this issue the user can his Reset on the variable selection bar and the data bound item is restored. The question is can I either execute that Reset button on load of the StiViewerControl or should it be doing it already?

There should be the .mrt and document to explain this issue further.

Thanks for your time.

David

Re: Trouble with the StiViewerControl

Posted: Thu Jun 13, 2013 10:44 am
by DHarvey
For those wondering what actually was the issue:

The bound report to the viewer control did not contain a compiled or rendered report.

This code sorted the issue:

Code: Select all

if (report is IVersionControlStiReport)
{
      report.SynchronizeData();
      report.Compile();
      report.Render(false);

      ReportViewer.Report = report as StiReport;
      return;
}
Consider this a none issue.

Re: Trouble with the StiViewerControl

Posted: Fri Jun 14, 2013 2:16 pm
by HighAley
Hello.

Sorry, we need a little more time to prepare an answer for you.

Thank you.

Re: Trouble with the StiViewerControl

Posted: Mon Jun 17, 2013 8:37 am
by HighAley
Hello, David.

Sorry, but we can't find your report template.
Did you solve your issue?

Thank you.