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"
-
- Posts: 53
- Joined: Thu Aug 21, 2008 9:28 pm
- Location: Peru
Show a message "Exporting" with "Report.ExportDocument"
Hi Milton,
We will prepare a test application for you.
Thank you.
We will prepare a test application for you.
Thank you.
Show a message "Exporting" with "Report.ExportDocument"
Hello,
You can use following code:
Thank you.
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");
}
-
- Posts: 53
- Joined: Thu Aug 21, 2008 9:28 pm
- Location: Peru
Show a message "Exporting" with "Report.ExportDocument"
Thank you very much, it was perfect.
Milton
Milton
Show a message "Exporting" with "Report.ExportDocument"
Hi Milton,
Please let us know if any additional help is required.
Thank you.
Please let us know if any additional help is required.
Thank you.