Convert to doc VB ASP.net demo help

Received : 2007/07/19 14:45:38
Message : The following demo does not work please help.

Type 'Aspose.Words.Word' is not defined.



'Open the DOC file using Aspose.Word.
Dim word As Aspose.Words.Word = New Aspose.Words.Word()
Document(doc = word.Open("MyDocument.doc"))

'You can merge data/manipulate document content here.
'Save the document in Aspose.Pdf.Xml format.
doc.Save("MyDocument.xml", SaveFormat.AsposePdf)

'Read the document in Aspose.Pdf.Xml format into Aspose.Pdf.
Dim pdf As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf()
pdf.BindXML("MyDocument.xml", Nothing)

'Instruct to delete temporary image files.
pdf.IsImagesInXmlDeleteNeeded = True

'Produce the PDF file.
pdf.Save("MyDocument.pdf")


This message was posted using Aspose.Live 2 Forum

Hi,

Thank you for considering Aspose.

You can refer to the example at Convert DOC To PDF C#. You can also refer to the demo project of Aspose.Words.

Hi,

Please install Aspose.Words and add the Aspose.Words.dll reference in your Solution. To convert Word Document to PDF you need both Aspose.Words and Aspose.Pdf.

If you need more help, please do let us know.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html