newntui/discovermdi/src/qachildframe.cpp
//---------------------------------------------------------------------------------------
// Callback will run every time the user want to copy report from the PSETHOME/reports.qa
// to some specified location and name.
//---------------------------------------------------------------------------------------
Callback will run every time the user want to copy report from the PSETHOME/reports.qa
to some specified location and name.
Callback will run every time the user want to copy report from the PSETHOME / reports . qa to some specified location and name .
void CQAChildFrame::OnSaveReport()  {
CFileDialog saveDlg(FALSE,"htm","Quality Analyser Report",OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
					"HTML files (*.htm) |*.htm |Text files (*.txt) |*.txt||",
					this);
CQATree* tree     = (CQATree*)m_wndSplitter.GetPane(0,0);
    CString to;
    if(saveDlg.DoModal()==IDOK) {
	    to = saveDlg.GetPathName();
		DeleteFile(to);
        tree->GenerateReport(to);
    }	
}
void CQAChildFrame :: OnSaveReport ( ) { CFileDialog saveDlg ( FALSE , " " , " " , OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT , " " , this ) ; CQATree * tree = ( CQATree * ) m_wndSplitter . GetPane ( 0 , 0 ) ; CString to ; if ( saveDlg . DoModal ( ) == IDOK ) { to = saveDlg . GetPathName ( ) ; DeleteFile ( to ) ; tree -> GenerateReport ( to ) ; } }
Callback will run every time the user want to copy report from the PSETHOME/reports.qa
to some specified location and name.
Callback will run every time the user want to copy report from the PSETHOME / reports . qa to some specified location and name .