Solved

Printing pictures from HTML documents

Posted on 1998-09-24
2
147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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.
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…
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…

726 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