paper size

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

paper size

Post by aline »

Hi!

I want my users to be able to choose between A4 and Letter paper sizes.

How can I change paper size by code?

I've tried to find that in documentation, but there is very little info on WinRT version...

Thanks,

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

Re: paper size

Post by HighAley »

Hello.

You could set the PaperSize property of the page. It will work for new reports.
If you need to change page size of the existing report template, you should to change position and size of the exiting components.
Rendered report could be resized with StiResizeReportHelper.ResizeReport() method.
Could you specify what do you want to do exactly?

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

Re: paper size

Post by aline »

Hi!

I have a user preference in my application that defines if user wants to see reports in A4 or in letter size.
When I load the report, I would like to change paper size before exporting it to PDF.

Thanks,

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

Re: paper size

Post by HighAley »

Hello.

The easiest way is to have 2 report templates and load one of them.

Thank you.
Locked