Solved

PlayMetafile FloodFill api function to printer

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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