I tried to use ResetRenderedState, but somehow it does not work.
I used something like this:
StiReport MyReport = new StiReport();
MyReport.Load(@"C:\File1.mdc");
MyReport.Compile();
MyReport.Render(false);
MyReport.Show(true);
MyReport.ResetRenderedState();
MyReport.Render(false) <---- here I get an error, saying that false and true and not valid in the context.
Or do I use the method in a wrong way?
Thanks!
ResetRenderedState
ResetRenderedState
Here the code of the ResetRenderedState method
This code tells to the report engine, that the report was not prepared for showing, the collection of the Rendered Pages is empty and report was not compiled.
The report for the previewing may be got from the template
MyReport.Load(@"C:\File1.mrt");
or from the collection of the Rendered pages:
MyReport.LoadDocument(@"C:\File1.mdc");
We cannot reproduce the error. Please send to us a sample, or provide with more detail.
Thank you.
Code: Select all
public void ResetRenderedState()
{
isRenderedValue = false;
CompiledReport = null;
CompilerResults = null;
RenderedPages.Clear();
}
The report for the previewing may be got from the template
MyReport.Load(@"C:\File1.mrt");
or from the collection of the Rendered pages:
MyReport.LoadDocument(@"C:\File1.mdc");
We cannot reproduce the error. Please send to us a sample, or provide with more detail.
Thank you.
ResetRenderedState
No need to. I already see my error. I had to use RenderedPages.Clear() 
Thanks, Marco

Thanks, Marco
ResetRenderedState
Let us know, if you need any help.
Thank you.
Thank you.