Results 1 to 3 of 3

Thread: Common Dialog Control help

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    12

    Post

    HI.

    I know how to make the Print box show, but how can I use those settings when I print the document? What is the code to print with the settings specified in the Print control box?

    Thanks!

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    OH NO!
    The dreaded print dialogbox!

    If/when you have problems with it, it's probably not your fault.

    Microsoft know that it's shite and their suggested fix on MSDN is write your own!!

    Using APIs to the DLLs instead doesn't help either!

    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company


    [This message has been edited by Mark Sreeves (edited 11-10-1999).]

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    There's nothing wrong with the Print dialog. Here's an example:
    Code:
        frmPreview.dlgPreview.CancelError = True
                                     
        frmPreview.dlgPreview.Flags = cdlPDNoSelection _
                                Or cdlPDUseDevModeCopies _
                                Or cdlPDHidePrintToFile _
                                Or cdlPDNoPageNums
        
        frmPreview.dlgPreview.Min = 1
        frmPreview.dlgPreview.Action = 5
        
        If Err = 32755 Then Exit Sub 'Cancel
        
        gnCopies = frmPreview.dlgPreview.Copies

    ------------------
    Marty

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width