BeSt
May 15, 2013, 10:45am
1
Hi.
I am trying to use some COM-functions in
VB.NET 2008.
For example I want to convert a postscript-file (*.ps) into PDF using cConvertFile.
This is the used code:
Dim pdfJob As New PDFCreator.clsPDFCreator
pdfJob.cConvertFile(psFilename, pdfFilename)
I do not get any error, but the PDF-file was not created!
I found a question like mine in the german forum, but there is no solution for that.
Please help.
Thank you
Benjamin
Hi,
I think it is cConvertPostscriptfile , please try that.
You can also take a look at the examples in your PDFCreator\COM\Windows Scripting Host\VBScript
regards,
Robin
BeSt
May 16, 2013, 7:02am
3
Hi.
The PDFCreator-Help says:
Public Sub cConvertPostscriptfile(ByVal InputFilename As String, ByVal
OutputFilename As String) ' This function is
deprecated! Use "cConvertFile()" instead.
Beside this fact, cConvertPostscriptfile doesn´t work as well...
Regards
Benni
Hi,
I tested both with the PS2PDF sample script and it worked.
Please take a look at that script.
regards,
Robin