Help and Support

Printing in Visual Basic and C

Article ID:103213
Last Review:March 7, 2005
Revision:3.2
This article was previously published under Q103213

SUMMARY

Printing from applications written for the Microsoft Windows version 3.1 operating system can be trying at times. This article describes a convenient method for printing from applications using a Dynamic-Link Library (DLL) called EZPRINT.dll. EZPRINT provides three exported functions--StartDocument, PrintObject, and EndDocument--to start the printing job, print various objects on the page, and end the printing job. The sample DLL code and Visual Basic code that calls EZPRINT are included with this article. You may use the DLL as is or modify it to meet your needs. In its present form, EZPRINT prints text, rectangles, and lines with various attributes.

This article was written for developers who have relatively little printing experience and whose printing needs involve text placement and simple line drawing only. Experienced developers can also use EZPRINT as a framework for implementing more sophisticated printing capabilities.

MORE INFORMATION

The following files are available for download from the Microsoft Download Center:


Ezprint.exe (http://download.microsoft.com/download/platformsdk/utility2/3.1/w31/en-us/ezprint.exe)
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 (http://support.microsoft.com/kb/119591/EN-US/) How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

APPLIES TO
Microsoft Windows Software Development Kit 3.1

Back to the top

Keywords: 
kbdownload kb16bitonly kbfile kbinfo kbsample KB103213

Article Translations

 

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.