Hi,
I'm having a weird problem setting up the paper size in a C# Windows Forms
Application.
The code I'm using is something like this:
PrintDocument pd = new PrintDocument();
pd.DefaultPageSettings.Margins.Left = 0;
pd.DefaultPageSettings.Margins.Right = 0;
pd.DefaultPageSettings.Margins.Top = 0;
pd.DefaultPageSettings.Margins.Bottom = 0;
PaperSize pkCustomSize1 = new PaperSize("First custom size", 827, 100);
pd.DefaultPageSettings.PaperSize = pkCustomSize1; //** This line works...
pd.PrinterSettings.DefaultPageSettings.PaperSize = pkCustomSize1; // This
doesn't...
What I get after all this, is just an A4 page that is only written on top...
:-(
How do I tell my application which size I want the paper to be?
Thanks in advance,
Pedro Feio