How to cancel the running PDF Generation Process?

Stimulsoft Reports.NET discussion
Post Reply
Anuranjani
Posts: 112
Joined: Wed Aug 27, 2014 12:36 pm

How to cancel the running PDF Generation Process?

Post 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
Thank You,
Darsana.R
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to cancel the running PDF Generation Process?

Post 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.
Post Reply