0
Answer

How to set pagemargins

Ask a question
soumya s

soumya s

18y
2k
1
Hi,

 I need to change the width of the printed content that is printed from CrystalReportViewer on Windows Form. I call print method from within the report class and it prints. Currently it prints on A4 paper. I need to modify so that the printed matter fits a 72 mm broad paper (like those billing machines). How do I do that ?
 I found PageMargins in PrintOptions, but am clueless how to calculate the marigns. Or is there any other way of doing this ? I am new to C#, .NET so am getting nowhere.

thanks in advance,
Soumya.