en de fr
Forum

PS to PDF conversion using COM in vb.net

5 Antworten [Letzter Beitrag]
Robbie
Offline
Beigetreten: 08/25/2009

It looks like this has been posted before but the page no longer exists. I am trying to use PDFCreator in vb.net to send a post script(.ps) file to the printer the examples provided in the COM folder for vb.net don't seem to work with post script files only text files.

Any help,

Thanks

Robbie
Offline
Beigetreten: 08/25/2009

Looks like I figured it out; I was trying to use the .cPrintFile but there is a

.cConvertPostscriptfile

that seems to work fine.

Thanks,

 

Frank
Bild von Frank
Offline
DeveloperTranslator
Beigetreten: 05/05/2006

Correct.
cPrintFile is for non-postscript and printable files.

__________________

Frank Team pdfforge

Strasser09
Offline
Beigetreten: 08/31/2009

Hello,

i got the same Problem, i cant convert .ps to .pdf. No Error Messeage, but no Pdf File too. Maybe something is wrong in my sourcecode:

Case 2 'Pdf Creator
Set pdfjob = New PDFCreator.clsPDFCreator

On Error GoTo Ends:
ThisWorkbook.PrintOut ActivePrinter:="PDFCreator", printtofile:= _
True, Collate:=True, PrToFileName:=(Pfad & Datei & ".ps")

On Error GoTo Ends:
pdfjob.cConvertPostscriptfile (Pfad & Datei & ".ps"), (Pfad & Datei & ".pdf")

End Select

I got the .ps file, but the convert to pdt doesnt work, did i miss something in the code?

Greetings & thx
Strasser