Solved

PlayMetafile FloodFill api function to printer

Posted on 1998-09-18
3
238 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
VBA Shell can't Find Word document 11 112
Formula problem with Excel attachment 6 39
MS SQL Update query with connected table data 3 38
checkbox to hide entire section 10 42
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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

828 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