Solved

Printing pictures from HTML documents

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

757 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now