SAMPLE: Annotating and Printing Text and Ink Together

Last reviewed: February 15, 1996
Article ID: Q98626
The information in this article applies to:
  • Microsoft Windows for Pen Computing version 1.0

SUMMARY

In the Microsoft Software Library, there is a sample called AnnoPrnt. This is a Windows for Pen Computing sample that demonstrates how to annotate a text file with ink, and then print out the resulting annotated text to any printer.

Download ANNOPRNT.EXE from the Microsoft Software Library (MSL) on the following services:

  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download ANNOPRNT.EXE (size: 30601 bytes) 
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the \SOFTLIB\MSLFILES directory
          Get ANNOPRNT.EXE (size: 30601 bytes) 
    

MORE INFORMATION

Using the AnnoPrnt sample as a starting point, developers can view one method to output annotated text. Certain Windows for Pen Computing application programming interfaces (APIs) are more suited to output to printer devices. This is the case here with using DrawPenData rather than RedisplayPenData. RedisplayPenData is more device-dependent on the video driver and not meant to be used in printer calls.

The AnnoPrnt sample also shows how to output different colors of ink so that developers can view the results of the color mapping on their respective printer; some colors are mapped such that they don't show up on a printer.

Another method of printing involves printing the entire image (the annotated text file) as a device-independent bitmap (DIB), thus allowing the driver, not GDI, to do the color mapping. Drivers typically do a better mapping to grayscale, and therefore if color is important, using DIBs is an alternative. The WINCAP sample in the Software Library demonstrates outputting DIBs to printers.

The AnnoPrnt sample was carefully checked for possible printing problems; however, because so much is dependent on printer drivers, future errors are possible.


Additional reference words: 1.00 softlib ANNOPRNT.EXE
KBCategory: kbprg kbfile
KBSubcategory: WpenInk


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 15, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.