Robbie
August 25, 2009, 11:26pm
1
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
August 26, 2009, 3:34pm
2
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
August 27, 2009, 11:27am
3
Correct. cPrintFile is for non-postscript and printable files.
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
BeSt
May 16, 2013, 4:27am
5
Does anybody have a solution for this problem? I am faced with the same behaviour! BeSt
Hi,
please post your code, thx.
regards,
Robin
BeSt
May 16, 2013, 5:39am
7
Hi.
It is in VB.NET 2010 and the code looks like this:
Dim pdfJob As New PDFCreator.clsPDFCreator
pdfJob.cConvertFile(psFilename, pdfFilename)
The behaviour is, that everything runs through without an error, but the PDF was not generated!
Hi,
I answerded on your other post, did it work? (Use cConvertPostscriptfile)
There is also an example in pdfcreator\com\windows scripting host\vbsript\ps2pdf
regards,
Robin