M
MasterPanda
Guest
I am trying to print a pdf from my application using this osprint.p option, I am able to use the printer option of saving pdf but the pdf is not in a readable format This is how it looks. any idea what I am doing wrong. Also, is there any option to set a default printer through this along with other options like the number of copies, collate, etc, without triggering MSW Print Setup dialog box I want to programmatically send these options?. With the below 4th parameters I am able to do the orientation and the paper size but don't how to set others. Also, any other suggestion to do this is welcomed.
For reference, I am using this article from Chris: Printing on ladscape mode along with this one: Progress KB - OS-PRINT / New Print Flags for Enhanced Printing
Thanks Ahead.
Continue reading...
Code:
RUN adecomm/_osPrint.p (INPUT wWin,
INPUT cUserFile,
INPUT 3,
INPUT 1 + IF fc-orient-portrait = 1 THEN 0 ELSE 2 + i-papersize + 160 + 512,
INPUT 0,
INPUT 0,
OUTPUT vResult).
IF vResult THEN DO:
OS-DELETE VALUE(cUserFile).
END.
For reference, I am using this article from Chris: Printing on ladscape mode along with this one: Progress KB - OS-PRINT / New Print Flags for Enhanced Printing
Thanks Ahead.
Continue reading...