This is a multi-part message in MIME format.
------=_NextPart_000_001E_01C47594.4EE2C2F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
HI,
I am trying to convert a word document into pdf using the code below. If =
i provide the OutputFileName i.e. is my oDestinationPath then the word =
document is converted to the pdf, but when i try to open the same i get =
a message "Acrobat could not open '_h0071.pdf' because it is either not =
a supported file type or because the file has been corrupted". Although =
if I provide oMissing to the OutPutFileName then the file is created on =
the desktop and opens fine. I want to control where the file is placed.
object oDestPath =3D @"c:\ZZZZ\_h0071__.pdf";
wordApp.ActivePrinter =3D "Acrobat Distiller";
// Print
wordApp.ActiveDocument.PrintOut2000(ref oBackground, ref oMissing, =
ref oMissing, ref oDestPath, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref =
oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing);
Please tell me what am i doing wrong.
Thanks in advance
Rahul
------=_NextPart_000_001E_01C47594.4EE2C2F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>HI,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to convert a word document =
into pdf=20
using the code below. If i provide the <FONT=20
size=3D3><STRONG><EM>OutputFileName </EM></STRONG></FONT><FONT=
=20
size=3D2>i.e. is my oDestinationPath then the word document is converted =
to the=20
pdf, but when i try to open the same i get a message "<STRONG>Acrobat =
could not=20
open '_h0071.pdf' because it is either not a supported file =
type or=20
because the file has been corrupted</STRONG>". Although if I provide =
oMissing to=20
the OutPutFileName then the file is created on the desktop and opens =
fine. I=20
want to control where the file is placed.</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D3></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> object oDestPath =3D=20
@"c:\ZZZZ\_h0071__.pdf";<BR></FONT><FONT face=3DArial=20
size=3D2> wordApp.ActivePrinter =3D "Acrobat=20
Distiller";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> //=20
Print<BR> wordApp.ActiveDocument.PrintOut2000(ref =
oBackground, ref oMissing, ref oMissing, <STRONG>ref oDestPath</STRONG>, =
ref=20
oMissing, ref oMissing,<BR> ref oMissing, =
ref=20
oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref =
oMissing,=20
ref oMissing,<BR> ref oMissing, ref =
oMissing, ref=20
oMissing, ref oMissing);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Please tell me what am i doing =
wrong.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Rahul</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> </DIV></FONT></BODY></HTML>
------=_NextPart_000_001E_01C47594.4EE2C2F0--