Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - [Vb6] Print Image load on PictureBox
  FAQ FAQ  Forum Search   Register Register  Login Login

[Vb6] Print Image load on PictureBox

 Post Reply Post Reply
Author
Message
Cuspide View Drop Down
Team Player
Team Player


Joined: 25 May 10
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cuspide Quote  Post ReplyReply Direct Link To This Post Topic: [Vb6] Print Image load on PictureBox
    Posted: 26 Mar 12 at 10:39AM
Hi,
I need to print an image loaded within a PictureBox

In vb6 to print I executed:

Printer.PaintPicture Sez1, 14, 106, 5, 54

In QuickPDF how can I do ?

Thanks
Daniele


Edited by Cuspide - 26 Mar 12 at 10:40AM
Back to Top
jpbro View Drop Down
Senior Member
Senior Member


Joined: 29 Mar 11
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 12 at 3:29PM
You can do something like this:


   Dim l_ImageId As Long
  
   SavePicture Sez1.Picture, App.Path & "\embed.jpg"
  
   l_ImageId = Qpdf.AddImageFromFile(App.Path & "\embed.jpg", 0)
   If l_ImageId = 0 Then
      Debug.Assert False
   Else
      Qpdf.SetOrigin 1
      Qpdf.DrawImage 10, 10, 100, 100
   End If


I'm not aware of any way to get StdPicture into QPDF directly without using the intermediary file or some additional code/external DLL to convert StdPictures to byte arrays, but it may exist in QPDF and I'm just not familiar with it.


Edited by jpbro - 26 Mar 12 at 3:37PM
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store