CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003
    Location
    Jodhpur -> Rajasthan -> INDIA
    Posts
    453

    How to put dialog befor printing something on view in MFC?

    Hello

    In my application. I am fdrawing on view.
    During Printing I want a dialog must appear with some text and options, based on which my selected text alongwith image drawn on the view get printed.


    So requirement is:

    Before coming Print dialog i want some another dialog appear first and then print dialog box.

    Based on option selected on the dialog box i will set flags which will help me print option comments alongwith the view image


    SO where to do Domodal for the dialog. Any help
    Leave Your Mark Wherever You Go
    http://www.danasoft.com/sig/d0153030Sig.jpg

  2. #2
    Join Date
    Sep 1999
    Location
    Colorado, USA
    Posts
    1,002
    In the view's OnPreparePrinting(), call up your option dialog first. If the user doesn't cancel the option dialog, then call DoPreparePrinting(). Set the members of CPrintInfo* pInfo if you don't want the default print dialog.

    Steve

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