The following code works in my development enviroment, but not on the client's machine (same basic enviroment with 64mb instead of 128mb). The problem is the 1st call to "OnFilePrint()" does not work, but the 2nd call to "OnFilePrint()" after the MessageBox() seems to work ok.
// Print 1st Receipt, then 2nd Receipt
MessageBox("Remove Receipt for Customer's Signature","Signature Copy",MB_OK);
// Add Invoice to Database /////// DB Write here ///////
// Create New Invoice
CPosApp* pApp = (CPosApp*) AfxGetApp( );
CDocument* pDoc = pApp->pDocTemplate->OpenDocumentFile(NULL);
Also, I would be happy to increase the points if any one can give me specific code samples to speed up the printing function (currently using MFC Doc/View std). Do I need to handling banding? How?