I have a .doc document, that is opened by Libre Office Writer, then sent to Printer and also to PDF Creator.
The process is controlled from a Delphi program that manipulates Writer via ComObj library.
Everything works well expected something quite strange :
The document is on only one page.
When the program runs on a Win Vista 64bits computer, the document is printed on one page (on Printer AND PDFCreator). This is OK.
When the program runs on a Win XP 32bits computer, the document is printed on two pages (on Printer AND PDFCreator), as if it was "zoomed" before being sent to printing process...
So, same program, same Writer version, different behaviour...
Can anyone understand such a bahaviour ?
As far as I know, PDFCreator works like a printer, expept that it sends the output to a file. so it seems logical that it makes the same result than on printer. I have tested with the same printer connected on the tow computers, always the same problem...
Here is the Delphi command that makes Writer print the document :
Code: Select all
FDocumentOpenOffice.print(VarArrayCreate([0, -1], varVariant));
Thanks.