CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Location
    India
    Posts
    780

    Some times Print function not working.

    Hi all

    in my application some time print function not working.

    i m calling this for print
    //CView::OnFilePrint();

    and for preview
    //CView::OnFilePrintPreview();

    but some times when i colling these function these not responded.

    nothing is happen there,than if i restart the machine its working fine.

    please provide me help for this.
    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

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

    Re: Some times Print function not working.

    Quote Originally Posted by vjshankwar View Post
    i m calling this for print
    //CView::OnFilePrint();

    and for preview
    //CView::OnFilePrintPreview();
    I wonder how can you expect that the line being commented out could do anything?

    PS please, reread your "explanation". Can you understand from it what what and how happened?
    I could not!.
    Victor Nijegorodov

  3. #3
    Join Date
    Jul 2009
    Location
    Kuwait
    Posts
    170

    Re: Some times Print function not working.

    If the code is commented out, even restarting the machine will not allow you to do something which is not there as a part of code
    If i helped you, Please rate me

    Visit http://www.octopusplus.com

  4. #4
    Join Date
    Jan 2008
    Location
    India
    Posts
    780

    Re: Some times Print function not working.

    these not commented

    i m taking help of this article

    http://www.codeproject.com/KB/list/listprintdemo.aspx

    please help me
    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

  5. #5
    Join Date
    May 2004
    Location
    45,000FT Above Nevada
    Posts
    1,539

    Re: Some times Print function not working.

    Quote Originally Posted by vjshankwar View Post
    these not commented

    i m taking help of this article

    http://www.codeproject.com/KB/list/listprintdemo.aspx

    please help me
    Code:
    i m calling this for print
    //CView::OnFilePrint();
    
    and for preview
    //CView::OnFilePrintPreview();



    The code you posted does show both those functions commented out...if the "Real Code" is not commented out then post it as we can not offer suggestions to fix code that is not posted correctly.
    Last edited by Vanaj; January 6th, 2010 at 01:36 AM. Reason: added code
    Jim
    ATP BE400 CE500 (C550B-SPW) CE560XL MU300 CFI CFII

    "The speed of non working code is irrelevant"... Of course that is just my opinion, I could be wrong.

    "Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan 'press on' has solved and always will solve the problems of the human race."...Calvin Coolidge 30th President of the USA.

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