Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Exception invoking CreateSaveDC Method
Started by Nephilim2612 at 09-18-2007 5:31. Topic has 0 replies.

Print Search « Previous Thread Next Thread »
  09-18-2007, 5:31
Nephilim2612 is not online. Last active: 11/2/2007 3:24:45 PM Nephilim2612

Top 500 Posts
Joined on 06-19-2007
Posts 12
Exception invoking CreateSaveDC Method
Reply Quote
Hello,
<br>
I'm trying, by following the samples at www.eprintdriver.com to code a simple program than uses one existing Task Printer at ePrint 5 in order to convert a DOC file in a PDF File. The code seems to be simple:
<br><br>

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br>
Dim DeviceSetting As New EpnDeviceSettings<br>
Dim MultiSaveOptions As New pnMultiSaveOptions<br>
Dim ExtraDcOptions As New EpnExtraDcOptions<br>
Dim PrinterList As New EpnPrinterList<br>
Dim hDC As Long<br><br>

If SetupEPrintInstance() Then<br>
ePrintInterface.GetPrinterSaveOptions("TIFPrinter", MultiSaveOptions)<br>


hDC = ePrintInterface.CreateSaveDC("PDFPrinter", DeviceSetting, MultiSaveOptions.PrinterSaveOptions(0), ExtraDcOptions)<br>



ePrintInterface.StartDoc(hDC, "c:\sgd\nas\Prueba.doc")<br>
ePrintInterface.EndDoc(hDC)<br>

ePrintInterface.DeleteDC(hDC)<br>
End If<br>
End Sub<br><br><br>

But, when debugging, at the moment i call the CreateSaveDC Method, i get the following error:<br><br>

Exception from HRESULT: 0x800A4E2D<br><br>

The "curious thing" here is that, before this call, the content at ultiSaveOptions.PrinterSaveOptions(0) and at every array element are the same ("Exception from HRESULT: 0x800A4E2D").<br><br>

What does it happen? Should have this anything to do with the fact of using an existing printer? Why does it fail whenever invocating the printing through this printer through native application (MS Word) work?<br><br>

The environment is Windows 2003 Server and the programming language is Visual Basic .NET under Visual Studio 2005 with .NET Framework 2.0<br><br>

Thank you very much

   Report 
Post
LEAD Support Fo... » Developer » ePrint API » Exception invoking CreateSaveDC Method

Powered by Community Server, by Telligent Systems