Printing Prblem in VB.Net using visio.Document object

M

Murali

I am getting this Error Message "when you create a postscript file you have
to send the host fonts".

I give the following parameter to Visio.Document.Printout method.

Printer name : Adobe PDF
PrintToFile : True
OutputFileName : "C:\Block.pdf"
etc:.

Please check the following code for example.

Dim strOutputPath As String = ""
Dim objApp As New Visio.InvisibleApp
Dim objDoc As Visio.Document
Try
' I am printing SVG file that is created by Microsoft Visio
Professional 2003
objDoc = objApp.Documents.Open("C:\Block.svg")
objDoc.Printer = "Adobe PDF"
objDoc.PrintFitOnPages = True
objDoc.PrintOut(Visio.VisPrintOutRange.visPrintCurrentPage, , ,
, objDoc.Printer, True, "C\:Block.pdf")
objApp.ActiveDocument.Saved = True
objApp.ActiveDocument.Close()
objApp.Quit()
objApp = Nothing
objDoc = Nothing
Catch ex As Exception
objApp.ActiveDocument.Close()
objApp.Quit()
objApp = Nothing
objDoc = Nothing
End Try

Please assit me.
Thank you

with regards,
murali
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top