[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

PlayMetafile FloodFill api function to printer

Posted on 1998-09-18
3
Medium Priority
?
247 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
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…
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…
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…
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 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