CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2001
    Posts
    306

    PrintDlg with special page range

    Hello,

    in my app the user can select the pages to print by typing in a start and an end page.
    I think this is the standard dialog.

    How can I give the user the possibility to select e.g. page "1,2,6-9" like in Word?
    Any ideas?

    thx
    Ralf
    Last edited by Ralf Schneider; March 24th, 2014 at 10:50 AM.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: PrintDlg with special page range

    Use PrintDlgEx instead.
    Victor Nijegorodov

  3. #3
    Join Date
    Jul 2001
    Posts
    306

    Re: PrintDlg with special page range

    Hello Victor,

    ok, but how can I use it together with the mfc-function OnPreparePrinting?
    Do I have to overwrite DoPreparePrinting?

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: PrintDlg with special page range

    Victor Nijegorodov

  5. #5

    Re: PrintDlg with special page range

    You must do some customize with PrintDlg, at first, you can create a new class that use CPageSetupDialog as base class. Then you need do some change with this class. Search with codeguru.

    Andy

    ---------------------
    E-XD++ Visualization Kit at code-home.com

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

Featured