Solved

PlayMetafile FloodFill api function to printer

Posted on 1998-09-18
3
233 Views
Last Modified: 2012-05-05
We tried to use the playmetafile function to print a metafile directly to printer.  Looks okay but metafiles containing floodfill cannot be recognized.  When played on screen, floodfill is recognized.  Is there any special procedure that I must do for this function to be recognized by the printer?
0
Comment
Question by:janim
3 Comments
 
LVL 14

Expert Comment

by:waty
ID: 1435610
You could load your WMF file in a picture box, then save it as a BMP file and print that file
0
 

Author Comment

by:janim
ID: 1435611
I cannot use a bitmap for printing because in order to print my desired image (which is big), I still need to create a larger bitmap just to print it the way I want to match the resolution.  Large bitmaps causes the "can't create autoredraw" error.  In other words, our system cannot handle this.  What we need is the playmetafile method.
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
ID: 1435612
With GetDeviceCaps you can test if the printer supports floodfill.
Usually it does not.

Declare Function GetDeviceCaps Lib "gdi32" Alias "GetDeviceCaps" (ByVal hdc As Long, ByVal nIndex As Long) As Long

RC_FLOODFILL = &h1000
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…

759 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

17 Experts available now in Live!

Get 1:1 Help Now