Export to PDF

Stimulsoft Reports.UWP discussion
Locked
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Export to PDF

Post by aline »

Hi!

How can I have a button in the viewer that sends user directly to Export to PDF options ?

Thank you,

Aline
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Export to PDF

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Export to PDF

Post by Alex K. »

Hello,

As a way, you can create a export to Pdf class and call method ExportPdfAsync() with necessary for you parameters
var pdfService = new StiPdfExportService();
await this.ExportPdfAsync(.....)

Thank you.
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Re: Export to PDF

Post by aline »

Hi!

I'll try to explain better my question:

When exporting the report to PDF by code, user doesn't get to choose export options as when using the export button on the viewer's toolbar.

Using the export button on the viewer toolbar, user has to choose first PDF and then pdf export options.
What I would like is a button in the toolbar viewer so user goes straight to PDF options. Something like "export to PDF".

Thanks

Aline
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export to PDF

Post by HighAley »

Hello.

You could add your own button for exporting to PDF directly.

Thank you.
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Re: Export to PDF

Post by aline »

Hello!

I know how to add a custom buttom to the toolbar. The question is that when I do this, I use the following code

Code: Select all

exportPDFService.ExportPdfAsync(reportViewer.Report, storageFilePDF, new StiPdfExportSettings());
to export the report. But this way user doesn't get to choose export options like when using your button...Is there a way to do this?

Thanks

Aline
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export to PDF

Post by HighAley »

Hello.

Sorry for the delay with answer we needed some time for analyzing of your issue.
It's impossible to call export options window from your button.
But you could use our code and create your own.
StiPdfExportSetupPage.zip
(3 KiB) Downloaded 380 times
Thank you.
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Re: Export to PDF

Post by aline »

Hello!

Thank you for sharing your code!

I've implemented the export options !

Aline Almeida
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Export to PDF

Post by Andrew »

Hello,

Excellent. We are always glad to help you!
Locked