Results 1 to 2 of 2

Thread: Common Print Dialog Box Properties

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    FWB, FL
    Posts
    1

    Smile Common Print Dialog Box Properties

    I am using VB6 and Crystal Reports 8.5 with Windows 2000 operating system and decided to use the VB print dialog box.
    When called, using “CommonDialog1.ShowPrinter”, the VB print box displays a three tabbed section print common dialog box: General, Layout, and Paper/Quality. Using the code between the “With CommonDialog1” and “end with” below, the following code enables the features that I want on the general section tab of the VB print dialog box:

    With CommonDialog1
    .Flags = cdlPDPageNums
    .Min = 1
    .Max = 999
    .FromPage = 1
    .ToPage = 999
    End With

    Question: What are the property variables for the other two tabbed sections of the print common dialog box and what system variables has to be updated (with the user settings) from the common dialog box?

    For example, this statement gets a value from the common dialog print box:

    orientation = commondialog.orientation

    What does orientation (1 for portrait, 2 for landscape) update in VB6?

    I appreciate anyone's help. Thanks.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Setting the Common Dialog Orientation property before showing the print dialog doesn't update the orientation in the dialog it self.
    (Why? Don't ask me it's probably one of those MS bugs).

    You can however read the Orientation property after the dialog closes to see if the user has changed the orientation from portrait to landscape.

    Best regards

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