In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Setting paper in Rich text

Xailer English public forum
Responder
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Setting paper in Rich text

Mensaje por Srdjan »

Can I setting paper source and orientation by program into Rich Text control (TRichEdit) ?
Pedro Gil
Mensajes: 121
Registrado: Lun Ene 15, 2007 7:46 pm

Setting paper in Rich text

Mensaje por Pedro Gil »

You can use the PageDlg() method.
Regards,
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Setting paper in Rich text

Mensaje 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,
Pedro Gil
Mensajes: 121
Registrado: Lun Ene 15, 2007 7:46 pm

Setting paper in Rich text

Mensaje 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,
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Setting paper in Rich text

Mensaje por Srdjan »

I not see CalcPageWidth() method in TRichEdit. please send me parameters of this method
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Setting paper in Rich text

Mensaje por Srdjan »

Thank you. I set printer:nPrinterSizeType := 9 for A4 and work OK
Responder