Wim Sandra
August 2, 2003, 00:22:55
All,
With the following code, I try to convert a word document to a pdf file. While the word document definitely has a header and a footer, it does not show up in the pdf file.
TX Words does show the header and footer. TX Words also exports the word document with the header and footer.
Tx4oleLib.TXLicenseManagerClass lic = new Tx4oleLib.TXLicenseManagerClass();
Tx4oleLib.TXTextControlClass control = new Tx4oleLib.TXTextControlClass();
control.EnableAutomationServer();
control.Load(@"c:\report3616_1059657129_.doc", 0, 9, true);
control.PageHeight = 16844;
control.PageWidth = 11906;
control.ViewMode = 2;
control.Save(@"c:\pdf.pdf", 0, 12, true);
With the following code, I try to convert a word document to a pdf file. While the word document definitely has a header and a footer, it does not show up in the pdf file.
TX Words does show the header and footer. TX Words also exports the word document with the header and footer.
Tx4oleLib.TXLicenseManagerClass lic = new Tx4oleLib.TXLicenseManagerClass();
Tx4oleLib.TXTextControlClass control = new Tx4oleLib.TXTextControlClass();
control.EnableAutomationServer();
control.Load(@"c:\report3616_1059657129_.doc", 0, 9, true);
control.PageHeight = 16844;
control.PageWidth = 11906;
control.ViewMode = 2;
control.Save(@"c:\pdf.pdf", 0, 12, true);