DC_PRINTFILE settings

This forum is for eXpress++ general support.
Post Reply
Message
Author
Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

DC_PRINTFILE settings

#1 Post 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)

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_PRINTFILE settings

#2 Post by rdonnay »

Write me a small test program so I can see your problem.
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DC_PRINTFILE settings

#3 Post by Wolfgang Ciriack »

With the parameter SIZE 70,80 and FORMSIZE XBPPRN_FORM_A4 my prints to PDFCreator are ok.
_______________________
Best Regards
Wolfgang

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DC_PRINTFILE settings

#4 Post by Victorio »

Hi Wolfgang,

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

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DC_PRINTFILE settings

#5 Post 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.
_______________________
Best Regards
Wolfgang

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DC_PRINTFILE settings

#6 Post 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 ;

Post Reply