Page 1 of 1

DC_PRINTFILE settings

Posted: Thu Oct 13, 2016 2:08 am
by Victorio
Hi,

I am using DC_PRINTFILE for print content of text file to "virtual" printer - via profile in PDF Creator. This profile create me PDF file.

I do not know , how set parameters for page. I have problem with pagesize.

For A4 page size is 210x297, then I examine PAGESIZE set to 2100,2970, but in PDF is only "small page"

Correct size is only when set to PAGESIZE 4500,7000 or near this number.

Parameter SIZE not affect to output.

I also examine VIEWPORT with parameters 100,100,3900,6600

Here is my part of source

DCPRINT OPTIONS TO aOptions NAME 'RauknReport' ;
BUSYMESSAGE "Generujem tlačovú zostavu" ;
FORMSIZE XBPPRN_FORM_A4 ;
VIEWPORT 100,100,3900,6600 ;
MARGIN {-1,0} ; // prvé číslo horný okraj, druhé ľavý
TO aOptions

or

DCPRINT OPTIONS TO aOptions NAME 'RauknReport' ;
BUSYMESSAGE "Generujem tlačovú zostavu" ;
FORMSIZE XBPPRN_FORM_A4 ;
PAGESIZE 4500,7000 ;
MARGIN {-1,0} ; // prvé číslo horný okraj, druhé ľavý
TO aOptions

How can I calculate size of output ?

Font i set here :

DC_PRINTFILE(suborptk2,.F.,"11.Courier New",aOptions)

Re: DC_PRINTFILE settings

Posted: Thu Oct 13, 2016 6:30 am
by rdonnay
Write me a small test program so I can see your problem.

Re: DC_PRINTFILE settings

Posted: Thu Oct 13, 2016 7:53 am
by Wolfgang Ciriack
With the parameter SIZE 70,80 and FORMSIZE XBPPRN_FORM_A4 my prints to PDFCreator are ok.

Re: DC_PRINTFILE settings

Posted: Thu Oct 13, 2016 11:18 pm
by Victorio
Hi Wolfgang,

And what font you use ?
I have DC_PRINTFILE(suborptk2,.F.,"11.Courier New",aOptions)

Re: DC_PRINTFILE settings

Posted: Fri Oct 14, 2016 12:49 am
by Wolfgang Ciriack
I use 8/10/11/14.Arial, but i think that this does not matter. But i do not use DC_Printfile.

Re: DC_PRINTFILE settings

Posted: Fri Oct 14, 2016 1:43 am
by Victorio
Thank you,

This can be different. I also create some reports with DCPRINT SAY... there it is ok.
Problem is only when print to PDF via PDC Creator from exist ascii file (text file in in OEM coding.)

I must prepare sample for Roger to look for it.

Now works fine with parameters
FORMSIZE XBPPRN_FORM_A4 ;
VIEWPORT 100,100,3900,6600 ;