Hi,
I am using the UltraPrintPreviewDialog in my windows application. Its working fine.
It show the dailog box in normal size of window. I want the dialog window is maxmised state.
Thanks & Regards
Maguesh
The UltraPrintPreviewDialog derives from Form so in code, you can set the WindowState property to Maximized.
Thanks for your reply, I am using this but its not working
I am coding as follows
Me.UltraPrintPreviewDialog1.Document = FormGraph.UltraChart1.PrintDocument
If Me.UltraPrintPreviewDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then Me.UltraPrintPreviewDialog1.Document.Print() End If
Awaiting for the reply
Thanks & Regard's
Thanks for your reply.
I am using
CType(Me.UltraPrintPreviewDialog1, Form).WindowState = FormWindowState.Maximized
its working now
You are setting the WindowState of the form that contains the reference to the UltraPrintPreviewDialog - not the UltraPrintPreviewDialog's WindowState.
i.e. Instead of:
Me.WindowState = FormWindowState.Maximized
You should use:
Me.UltraPrintPreviewDialog1.WindowState = FormWindowState.Maximized