Página 1 de 1
Setting paper in Rich text
Publicado: Vie Dic 21, 2012 9:00 pm
por Srdjan
Can I setting paper source and orientation by program into Rich Text control (TRichEdit) ?
Setting paper in Rich text
Publicado: Sab Dic 22, 2012 6:14 pm
por Pedro Gil
You can use the PageDlg() method.
Regards,
Setting paper in Rich text
Publicado: Sab Dic 22, 2012 6:21 pm
por Srdjan
Yes. I can use this but customer must set by PageDlg I want set A4 and landscape mode without customer must do anything,
Setting paper in Rich text
Publicado: Sab Dic 22, 2012 8:02 pm
por Pedro Gil
You can try to use the Printer object and modify some of its properties such
as nPaperSizeType, nPaperLength, nPaperWidth and Orientation.
After doing it, you should call the CalcPageWidth() method of the TRichEdit
class.
Regards,
Setting paper in Rich text
Publicado: Dom Dic 23, 2012 2:45 am
por Srdjan
I not see CalcPageWidth() method in TRichEdit. please send me parameters of this method
Setting paper in Rich text
Publicado: Dom Dic 23, 2012 9:09 am
por Srdjan
Thank you. I set printer:nPrinterSizeType := 9 for A4 and work OK