Page 1 of 1

Show a message "Exporting" with "Report.ExportDocument"

Posted: Sun Feb 08, 2009 6:35 pm
by Milton Guevara
Hello
I want to show a message "Exporting" at generating a TXT file with the "Report.ExportDocument" command
Any ideas how to do?

Milton

Show a message "Exporting" with "Report.ExportDocument"

Posted: Mon Feb 09, 2009 9:49 am
by Edward
Hi Milton,

We will prepare a test application for you.

Thank you.

Show a message "Exporting" with "Report.ExportDocument"

Posted: Mon Feb 09, 2009 11:23 am
by Vital
Hello,

You can use following code:

Code: Select all

IStiProgressInformation progress = StiGuiOptions.GetProgressInformation(null);

using (BackgroundWorker worker = new BackgroundWorker())
{
         worker.WorkerSupportsCancellation = true;
         worker.DoWork += new DoWorkEventHandler(worker_DoWork);
         worker.RunWorkerAsync();

         progress.Start("Exporting");

         while (worker.IsBusy)
		Application.DoEvents();

         progress.Close();
}


private void worker_DoWork(object sender, DoWorkEventArgs e)
{
      service.ExportDocument(StiExportFormat.Pdf, "test.pdf");
}
Thank you.

Show a message "Exporting" with "Report.ExportDocument"

Posted: Wed Feb 11, 2009 6:56 pm
by Milton Guevara
Thank you very much, it was perfect.

Milton

Show a message "Exporting" with "Report.ExportDocument"

Posted: Thu Feb 12, 2009 9:32 am
by Edward
Hi Milton,

Please let us know if any additional help is required.

Thank you.