Page 1 of 1

Two PDF Printers

Posted: Tue Apr 10, 2018 6:10 am
by nekbmm
I need two PDF printers with different page layouts A4 and A3, portrait and landscape.
Is it possible ?

Re: Two PDF Printers

Posted: Tue Apr 10, 2018 6:36 am
by dragancesu
Why not? In report program I use

Code: Select all

   mPrinter := GetPrinter()
   IF Empty ( mPrinter )
      MsgExclamation( "Printer not selected" )
      dbcloseall()
      RETURN NIL
   ENDIF

   SELECT PRINTER mPrinter ;
      ORIENTATION PRINTER_ORIENT_PORTRAIT ;
      PAPERSIZE PRINTER_PAPER_A4 ;
      PREVIEW 

   START PRINTDOC NAME "report" 

GetPrinter() replace with "YourPrinterName", it's still easy

Re: Two PDF Printers

Posted: Sat Apr 14, 2018 7:07 am
by nekbmm
Štampam M4 obrazac u PDF. Može li direktno u registry da se menja format,( A4 portrait - A3 landscape i obratno).
Problem je što je vrednost PDF default štampača u reg_binary formatu !
Pozdrav NEX.

Re: Two PDF Printers

Posted: Sat Apr 14, 2018 3:41 pm
by dragancesu
Ne koristim direktno kreiranje PDF jer ne stampa dobro nasa slova

Stampac je jedan, velicina stane A4/A3 i orjentacija portret/landscape se definise, a pdf stampac ce to da prihvati,
to ne bi trebalo da bude problem

Tako da, samo si nepotrebno komplikovao

Re: Two PDF Printers

Posted: Sun Apr 15, 2018 1:15 pm
by nekbmm
Štampao sam iz xbase++, problem rešen.

Hvala dragancesu.