Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: help with rasterevent - urgent
Started by reddy at 03-20-2008 12:54. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  03-20-2008, 12:54
reddy is not online. Last active: 5/9/2008 4:12:43 PM reddy

Top 500 Posts
Joined on 03-06-2008
Posts 10
help with rasterevent
Reply Quote
hi,
I am trying to invoke the rasterevent for eprint when the print job is saved as a TIFF image. But this doesnt seem to be working for me.Could any one please show how to invoke the rasterevent(examples code maybe).

Thank you,
Reddy
   Report 
  03-21-2008, 17:41
reddy is not online. Last active: 5/9/2008 4:12:43 PM reddy

Top 500 Posts
Joined on 03-06-2008
Posts 10
Re: help with rasterevent
Reply Quote
I forgot to mention I am using VB.Net to do this.

Thanku
   Report 
  03-23-2008, 3:49
Maen Hasan is not online. Last active: 10/5/2008 10:18:54 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,744
Re: help with rasterevent
Reply Quote
Hello,

To enable firing the RasterEvent event, you must set the value of the EnableRasterEvent property to TRUE before start prining the print job.
Please check the following code:
+-------+
Dim WithEvents ePrintEvents  As ePrint

Private Sub ePrintEvents_RasterEvent(ByVal PrinterName As String, ByVal PrnImage As stdole.IPictureDisp)
   Picture1.Picture = PrnImage
End Sub


Private Sub menu_EnableRasterEvent_Click()
   Set ePrintEvents = New ePrint
   ePrintEvents.UnlockSupport SUPPORT_OEM, OEM_KEY
   

   ePrintEvents.EnableRasterEvent ("LEADTOOLS ePrint 5") = True
End Sub
+-------+

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  03-25-2008, 10:20
reddy is not online. Last active: 5/9/2008 4:12:43 PM reddy

Top 500 Posts
Joined on 03-06-2008
Posts 10
Re: help with rasterevent - urgent
Reply Quote
hello,

I 've tried doing that earlier. But Visual Studio 2005 is not recognising stdole.IPictureDisp. It is giving an error saying that the type for stdole.IPictureDisp is not defined. So I tried using system.Drawing.Image for this event , it doesnt seem to work. Could anyone plz look into this..

Thank you,
reddy
   Report 
  03-25-2008, 11:20
reddy is not online. Last active: 5/9/2008 4:12:43 PM reddy

Top 500 Posts
Joined on 03-06-2008
Posts 10
Re: help with rasterevent - urgent
Reply Quote
hello,

I have added the stdole namespace and it recognises it now. but it still doesnt work. here is the code i have used aftr enabling the raster event

Private Sub ePrint1_RasterEvent(ByVal PrinterName As String, ByVal PrnImage As stdole.IPictureDisp)
Dim ImagePreview As New Preview
ImagePreview.Image1.Image = PrnImage
' EPrintPicture.Image = PrnImage
ImagePreview.ShowDialog()
End Sub

But nothing shows up :(

thanku,
reddy

   Report 
  03-26-2008, 3:08
Maen Hasan is not online. Last active: 10/5/2008 10:18:54 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,744
Re: help with rasterevent - urgent
Reply Quote
Hello,

Can you please send me a small working project (not your full application) the shows the problem, so that I can debug the code and maybe fix this issue?

Also, what is the LEADTOOLS ePrint product id that you use?
You can find LEADTOOLS ePrint product ID on the "About" tab on your LEADTOOLS ePrint 5.0 driver properties dialog.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  03-28-2008, 18:37
reddy is not online. Last active: 5/9/2008 4:12:43 PM reddy

Top 500 Posts
Joined on 03-06-2008
Posts 10
Re: help with rasterevent - urgent
Reply Quote
thank u ...i contacted the support and they cleared my doubt..
   Report 
Post
LEAD Support Fo... » Developer » ePrint API » Re: help with rasterevent - urgent

Powered by Community Server, by Telligent Systems