?
Solved

Printing pictures from HTML documents

Posted on 1998-09-24
2
Medium Priority
?
150 Views
Last Modified: 2010-08-05
I'm developing a program which should be able to print HTML documents, including images. But I can't find any appropriate function in VB. I know of the Printer.PaintPicture method, but I can't print a picture from the system, like this:

sPictureToPrint = "c:\images\me.gif"
Printer.PaintPicture sPictureToPrint, 50, 50
0
Comment
Question by:liljegren
2 Comments
 

Author Comment

by:liljegren
ID: 1436427
Just want to mention that HTML is not enough in this case. I can't use the built-in web controls in VB5. Among other things I need to enable page breaking.
0
 
LVL 12

Accepted Solution

by:
mark2150 earned 200 total points
ID: 1436428
You need to load the picture into a control *first*, then use the PaintPicture method

Picture1.Picture = LoadPicture("PARTY.GIF")
Printer.PaintPicture Picture1.Picture, 50, 50
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question