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!
StiPrintProvider_QueryPageSettings
StiPrintProvider_QueryPageSettings
Please check build from 22 Feb.
Thank you.
Thank you.
StiPrintProvider_QueryPageSettings
I now completely removed the event (so I don't set any paper size), but in some reports, I still get the message.
StiPrintProvider_QueryPageSettings
We have updated build from 22 Feb. Please check it again.
Thank you.
Thank you.
StiPrintProvider_QueryPageSettings
There is no build from the 22nd. Last build is from 21st (yesterday)
StiPrintProvider_QueryPageSettings
Now the build is accessible.
Thank you.
Thank you.