StartDoc() vs. StartDocPrinter() Etal.

This is a discussion on StartDoc() vs. StartDocPrinter() Etal. within the Windows Programming forums, part of the Platform Specific Boards category; Other than the obvious of StartDocPrinter() has also a HANDLE passed to it, what is the difference between these two? ...

  1. #1
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065

    StartDoc() vs. StartDocPrinter() Etal.

    Other than the obvious of StartDocPrinter() has also a HANDLE passed to it, what is the difference between these two? Which is the best to use to output to a printer? There seems to be two completely separate families for these two. The StartDocPrinter() family apparently has a WritePrinter(), but I don't think that is necessary for the StartDoc() family???

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    The StartDoc() family of functions works through the GDI. The StartDocPrinter() family of functions is for writing pretty much raw data to the spool.

    The WritePrinter() function is for writing raw bytes to the spool. The StartDoc() family works by just using the GDI.

    StartDoc() is the proper family of functions to use for most printing.
    Callou collei we'll code the way
    Of prime numbers and pings!

  3. #3
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    That is the conclusion that I had made, just wanted verification. Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 07-31-2002, 11:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21