Solved

Printing pictures from HTML documents

Posted on 1998-09-24
2
144 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 100 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

776 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