Page 1 of 1

How to cancel the running PDF Generation Process?

Posted: Wed Nov 25, 2015 12:24 pm
by Anuranjani
Hi Andrew,

I would like to do cancel the running PDF generation Process in C# code?.Kindly help us to improve.

Code: Select all

StiReport report =new StiReport ();
report.load("dff.mrt");
report.regdata(sdfgfdg);
report.render();   
is the code for PDF generation and how would i cancel it.Let me know the solution as soon as possible.

Thanks,
Darsana.R

Re: How to cancel the running PDF Generation Process?

Posted: Thu Nov 26, 2015 5:28 am
by HighAley
Hello, Darsana.

If you don't want to render the same report twice you could check if the report is rendered. You could do it with next code:

Code: Select all

if (report.IsRendered != true) {
//your code here
}
Thank you.