Document.Print method doesn't seems to work
-
- Posts: 21
- Joined: Tue Apr 29 2003
- Location: Montreal, Quebec
Document.Print method doesn't seems to work
Hi,
I'm using the following code in VB:
------------------------------------------------------------------
Private Sub Command1_Click()
Dim pdf As New CDIntfEx.Document
pdf.SetLicenseKey "My Company Name", "My License"
pdf.Open "c:\test.pdf"
pdf.Print "4th-4100-BARD-PCL6 on srv-printers", 1, pdf.PageCount, 1
End Sub
-----------------------------------------------------------------
When I try to run that code, I got an error message saying that the "Object doesn't support this property or method" on the "print" line... how come?
Thanks
Daniel
I'm using the following code in VB:
------------------------------------------------------------------
Private Sub Command1_Click()
Dim pdf As New CDIntfEx.Document
pdf.SetLicenseKey "My Company Name", "My License"
pdf.Open "c:\test.pdf"
pdf.Print "4th-4100-BARD-PCL6 on srv-printers", 1, pdf.PageCount, 1
End Sub
-----------------------------------------------------------------
When I try to run that code, I got an error message saying that the "Object doesn't support this property or method" on the "print" line... how come?
Thanks
Daniel
-
- Posts: 21
- Joined: Tue Apr 29 2003
- Location: Montreal, Quebec
-
- Posts: 21
- Joined: Tue Apr 29 2003
- Location: Montreal, Quebec
I am also having trouble with the Document.Print method.
I am using VB 6.0 with the ActiveX interface into Cdintf210.dll.
When I call the Print method of the Document object, I get a "runtime error 438, object not supported" error message.
This should be the Pro Edition as we just recently paid for an upgrade to version 2.10 Developer Pro (to be specific, I am using 2.10d).
Is there anything I can check to make sure I have the Pro version installed? I am installing the printer using install.exe so the printer properties of the driver are available to check.
I am using VB 6.0 with the ActiveX interface into Cdintf210.dll.
When I call the Print method of the Document object, I get a "runtime error 438, object not supported" error message.
This should be the Pro Edition as we just recently paid for an upgrade to version 2.10 Developer Pro (to be specific, I am using 2.10d).
Is there anything I can check to make sure I have the Pro version installed? I am installing the printer using install.exe so the printer properties of the driver are available to check.
Hello,
Keith, to know which version of the driver you have you can right click on the printer and choose 'Properties', you will get the version of the driver you have.
If you have the latest update of the driver you check the version of the printer from the 'Amyuni Tech' tab in the 'Properties' window.
Also you can send us a pdf file and we will check with which version of the driver it is generated.
Daniel and Keith, if you are still facing any problem with the .print method please send an e-mail to support@amyuni.com.
Thanks.
Keith, to know which version of the driver you have you can right click on the printer and choose 'Properties', you will get the version of the driver you have.
If you have the latest update of the driver you check the version of the printer from the 'Amyuni Tech' tab in the 'Properties' window.
Also you can send us a pdf file and we will check with which version of the driver it is generated.
Daniel and Keith, if you are still facing any problem with the .print method please send an e-mail to support@amyuni.com.
Thanks.
The General tab states "Amyuni Document Converter 2.10".
The Amyuni Tech tab states "Amyuni PDF Converter 2.10d".
Is there anywhere that it is supposed to state if I have either the Standard or Pro edition? That's what I'm looking for because we are supposed to have the Pro edition. I'm wondering if I have either downloaded the wrong version or been given an incorrect license code since it seems the functionality of the .Print method looks to be disabled, as if I don't have suficient access.
The Amyuni Tech tab states "Amyuni PDF Converter 2.10d".
Is there anywhere that it is supposed to state if I have either the Standard or Pro edition? That's what I'm looking for because we are supposed to have the Pro edition. I'm wondering if I have either downloaded the wrong version or been given an incorrect license code since it seems the functionality of the .Print method looks to be disabled, as if I don't have suficient access.
-
- Posts: 21
- Joined: Tue Apr 29 2003
- Location: Montreal, Quebec
Hello,
Keith in the properties dialog box or near producer, there should be metioned if you have the professional edition. From the information you give you seem to have the Standard not Professional edition. To solve this issue please send a pdf file generated by the driver to support@amyuni.com and explain to them the situation so we can check which product you bought.
Daniel, I tried to use the .Print function from VFP, Access, Delphi and PowerBuilder and didn't encounter any problem. I also advise you to contact our support@amyuni.com regarding this matter so they can check this issue more closely.
Keith in the properties dialog box or near producer, there should be metioned if you have the professional edition. From the information you give you seem to have the Standard not Professional edition. To solve this issue please send a pdf file generated by the driver to support@amyuni.com and explain to them the situation so we can check which product you bought.
Daniel, I tried to use the .Print function from VFP, Access, Delphi and PowerBuilder and didn't encounter any problem. I also advise you to contact our support@amyuni.com regarding this matter so they can check this issue more closely.
Thanks for the suggestion, Mike.
Putting .Print inside the brackets does suppress the error message. However, nothing is printed.
Anyone else have any suggestions? This is the last issue that is holding me up from releasing my software with the latest version of the PDF Converter. I would really like to have this print feature so I can get away from requiring our users to have Acrobat Reader installed to print certain reports from our system.
The code sample for what I am doing is this:
...
(Already successfully generated a PDF using the CDIntfEx.CDIntfEx object)
...
Set objPDFDoc = New CDIntfEx.Document
objPDFDoc.SetLicenseKey "My Company Name", _
"My Company License Code"
objPDFDoc.Open strReptdir & "\proposal.pdf"
objPDFDoc.[Print] strPDFPrinter, 1, objPDFDoc.PageCount, 1
Putting .Print inside the brackets does suppress the error message. However, nothing is printed.
Anyone else have any suggestions? This is the last issue that is holding me up from releasing my software with the latest version of the PDF Converter. I would really like to have this print feature so I can get away from requiring our users to have Acrobat Reader installed to print certain reports from our system.
The code sample for what I am doing is this:
...
(Already successfully generated a PDF using the CDIntfEx.CDIntfEx object)
...
Set objPDFDoc = New CDIntfEx.Document
objPDFDoc.SetLicenseKey "My Company Name", _
"My Company License Code"
objPDFDoc.Open strReptdir & "\proposal.pdf"
objPDFDoc.[Print] strPDFPrinter, 1, objPDFDoc.PageCount, 1
It works!
The reason no output was being sent to the printer was because I passed the wrong string to the printer name parameter of the .Print method (full name, driver name and port as one string instead of just the printer name).
I did have an unusual result the first time it did print. The PDF document I generated prior to the .Print call was 2 pages. Only one was printed. I tried a different report and it was printed correctly. Went back to the original and the correct number of pages printed the second time.
Also, the return value from the .Print method is always False. According to the latest documentation, it is supposed to be True if successful, False if unsuccessful. Right now, False is always being returned, regardless of if the document printed correctly or not.
The reason no output was being sent to the printer was because I passed the wrong string to the printer name parameter of the .Print method (full name, driver name and port as one string instead of just the printer name).
I did have an unusual result the first time it did print. The PDF document I generated prior to the .Print call was 2 pages. Only one was printed. I tried a different report and it was printed correctly. Went back to the original and the correct number of pages printed the second time.
Also, the return value from the .Print method is always False. According to the latest documentation, it is supposed to be True if successful, False if unsuccessful. Right now, False is always being returned, regardless of if the document printed correctly or not.