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.
Re: Some times Print function not working.
Quote:
Originally Posted by
vjshankwar
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? :confused:
PS please, reread your "explanation". Can you understand from it what what and how happened? :confused:
I could not!. :cool:
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
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
Re: Some times Print function not working.
Quote:
Originally Posted by
vjshankwar
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.