Solved

Modify EMF file for sending bin requests to appropriate printer

Posted on 2008-10-07
3
418 Views
Last Modified: 2013-12-05
We want to generate an EMF file, and then, based on page count and printer availability, send the EMF file to a specific printer chosen from a list.  If their are bin-specific sections (certain pages need to come from specific bins), how can we select a specific bin based on the printer by modifying the EMF file.  It's been our experience that most 'new' printers have bin numbers outside the normal range.
0
Comment
Question by:jbmsystems
3 Comments
 
LVL 38

Accepted Solution

by:
Herman D'Hondt earned 500 total points
ID: 22664042
EMF (Enhanced Windows Metafile) files are graphic files in Windows' internal format. They are a new version of the old WMF files. These files cannot be sent directly to a printer, with or without changing tray numbers. To print an EMF, open it in an suitable application, such as Illustrator, Corel, Irfanview, etc. The printer driver will then convert the EMF into something understandable by the printer, and will let you change trays at print time.

To make your idea work you need to generate a file that is directly understood by the printer. If you generate a PCL5 file instead of EMF, you will be able to change the tray numbers before you send it to the printer. However that assumes the printer understands PCL, which excludes GDI printers (many low-cost lasers and most inkjets). You could do the same with PostScript, but PostScript files are much harder to generate and modify, and more printers support PCL than PS.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

19 Experts available now in Live!

Get 1:1 Help Now