in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

How to change the default page setting ?

Last post 7/30/2007 9:44 PM by Huang Chih-Yuan. 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
Previous Next
  • 5/24/2007 4:09 AM

    How to change the default page setting ?

    Hi to all,

    I want to know if it's possible to change the default page setting by using the registry  HKEY_CURRENT_USER\Software\Developer Express\XtraPrinting\PreviewLayoutData\Bounds ?

    I want, for sample, to have as default setting "A4 (210 x 297 mm)" + Landscape

     Thanks

  • 5/24/2007 8:04 AM In reply to

    Re: How to change the default page setting ?

    Hello Jean Claude,

    Could you please clarify your task in more detail? For example, you may set the Paper Kind for a document via the PrintingSystem.PageSettings.PaperKind property.

    As for the registry key, which you've mentioned, it is intended to store the Print Preview window's size, not to store page settings.

    @.
    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
  • 5/24/2007 11:38 AM In reply to

    Re: How to change the default page setting ?

    Hi Alan,

     I want to know if it's possible to set somewhere (without have to change my code) a default Paper Kind ?

    I hoped it 's possible via registry settings....Huh?

  • 7/30/2007 9:44 PM In reply to

    Re: How to change the default page setting ?

    Another way to chage page setting by yourself.

    Dim ps As New PrintingSystem()

            'Custom paper setting 
            Dim MyPaperSize As New System.Drawing.Printing.PaperSize("Custom Paper Size", 1100, 500) 
            Dim MyMargins As New System.Drawing.Printing.Margins(10, 10, 20, 20) 
            Dim MyPageSettings As New System.Drawing.Printing.PageSettings
            MyPageSettings.PaperSize = MyPaperSize
            MyPageSettings.Margins = MyMargins

             ps.PageSettings.Assign(MyPageSettings)

            ps.PageSettings.Landscape = False

     

Page 1 of 1 (4 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED