Did you lock your load logic until the print command has been returned?
What do you mean by print command has been returned?
Should I check retCode?
Code
int retCode;
if (PrintDialog1->Execute())
{
if (PrintDialog1->PrintRange == prSelection)
retCode = wpView->CommandStr(COMPDF_Print, SelectedPages);
else if (PrintDialog1->PrintRange == prPageNums)
{
String ft = IntToStr(PrintDialog1->FromPage) + "-" + IntToStr(PrintDialog1->ToPage);
retCode = wpView->CommandStr(COMPDF_Print, ft);
}
else
retCode = wpView->CommandEx(COMPDF_Print, 0);
}
Alles anzeigen
Or to use OnViewerMessage to intercept Win msgs?
Anyway, I've suggested my company to move to wp4.