Solved

PlayMetafile FloodFill api function to printer

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

867 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

20 Experts available now in Live!

Get 1:1 Help Now