How to hide line numbers (margin 0) in PrintPreview

Sep 26, 2012 at 1:03 PM

I have enabled the line numbers in my control with "Scintilla1.Margins(0).Width = 5".
Now i want to print the content but without line numbers.

How can I disable the line numbers (margin 0) for the print preview?
(The user should be have the choice betwenn a print with line numbers and a print without line numbers.)