StiPrintProvider_QueryPageSettings

Stimulsoft Reports.NET discussion
Post Reply
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

StiPrintProvider_QueryPageSettings

Post by EDV Gradl »

I use the new event QueryPageSetting event like this:

private void StiPrintProvider_QueryPageSettings(object sender, StiQueryPageSettingsEventArgs e)
{
if (this.Höhe.HasValue && this.Breite.HasValue)
{
int Height = (int)(this.Höhe.Value / 0.254);
int Width = (int)(this.Breite.Value / 0.254);
PaperSize MyPaperSize = new PaperSize("WGPNextGen", Width, Height);
e.PaperSize = MyPaperSize;
}
else
e.PaperSize = null;
}

When setting the size I get this message:

"PaperSize cannot be changed unless the Kind property is set to custom"

The question is where do I set the kind property?

Thanks a lot!
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

StiPrintProvider_QueryPageSettings

Post by Vital »

Please check build from 22 Feb.

Thank you.
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

StiPrintProvider_QueryPageSettings

Post by EDV Gradl »

I now completely removed the event (so I don't set any paper size), but in some reports, I still get the message.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

StiPrintProvider_QueryPageSettings

Post by Vital »

We have updated build from 22 Feb. Please check it again.

Thank you.
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

StiPrintProvider_QueryPageSettings

Post by EDV Gradl »

There is no build from the 22nd. Last build is from 21st (yesterday)
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

StiPrintProvider_QueryPageSettings

Post by Edward »

Now the build is accessible.

Thank you.
Post Reply