Page 1 of 1

StiPrintProvider_QueryPageSettings

Posted: Wed Feb 21, 2007 9:18 am
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!

StiPrintProvider_QueryPageSettings

Posted: Thu Feb 22, 2007 4:07 am
by Vital
Please check build from 22 Feb.

Thank you.

StiPrintProvider_QueryPageSettings

Posted: Thu Feb 22, 2007 6:17 am
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.

StiPrintProvider_QueryPageSettings

Posted: Thu Feb 22, 2007 6:27 am
by Vital
We have updated build from 22 Feb. Please check it again.

Thank you.

StiPrintProvider_QueryPageSettings

Posted: Thu Feb 22, 2007 6:36 am
by EDV Gradl
There is no build from the 22nd. Last build is from 21st (yesterday)

StiPrintProvider_QueryPageSettings

Posted: Thu Feb 22, 2007 8:44 am
by Edward
Now the build is accessible.

Thank you.