DefaultPaperSize doesn't seem to be working

Stimulsoft Reports.NET discussion
Post Reply
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

DefaultPaperSize doesn't seem to be working

Post by MikeD »


I got a new build yesterday. 737

Not sure if the problem existed before this.

But I know in build 717 the following command worked.

Stimulsoft.Report.StiOptions.Engine.DefaultPaperSize = System.Drawing.Printing.PaperKind.A4;

It doesn't seem to be working anymore. No matter what I set the DefaultPaperSize to it never changes.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

DefaultPaperSize doesn't seem to be working

Post by Andrew »

Hello,

We have checked the issue and everything works Ok.
Note: This function works only for newly created pages. Created pages does not change its parameters.

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

DefaultPaperSize doesn't seem to be working

Post by MikeD »


Well it doesn't seem to be working.

Here's my code.

Stimulsoft.Report.StiOptions.Engine.DefaultPaperSize = System.Drawing.Printing.PaperKind.A4;

Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();

report.Dictionary.Synchronize();
WebReportDesigner.Design(report);

After this the WebReportDesigner_GetReport event is run and the report is rendered.


The Page size is Width 8.5 and Height 11 and Size = Custom.

I can click on the Size: drop down and select A4 and it works fine.

What am I missing.






Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

DefaultPaperSize doesn't seem to be working

Post by Vladimir »

Hello, Mike

Settings from the class StiOptions not apply to WebDesigner. For it please use a special class StiWebDesignerOptions.

With regard to the set default page size. Unfortunately, at this moment there is not possibility in WebDesigner.

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

DefaultPaperSize doesn't seem to be working

Post by MikeD »


Is this option going to be available soon??

It seems like I can't be the only one who uses this product in the US.

We have customers all over the world. And we need to set the size to the different users who create reports.

Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

DefaultPaperSize doesn't seem to be working

Post by Vladimir »

Hello, Mike

This option will be implemented in the final version 2010.2 of our product at the end of September.

Thank you.
Post Reply