Another chapter in my ongoing crystal reports saga (you out there Ian?) ;-) ...
I am trying to use the dll function PEOutputToWindow in crystal reports which is defined as:
*****************
BOOL CRPE_API PEOutputToWindow (
short printjob,
char FAR *title,
short left,
short top,
short width,
short height,
long style,
HWND parentwindow
);
*****************
My declare statement is:
*****************
DECLARE PEOutputToWindow IN CRPE32.DLL ;
short printjob, ;
strin printtitle, ;
integ printleft, ;
integ printtop, ;
integ printwidth, ;
integ printheight, ;
integ printstyle, ;
integ parentwinow
*****************
I am having two problems. The first problem is that unless I create a messagebox right after calling the function, the print preview window will close immediately. If I place a messagebox after the function call the window stays open, but I can't get it to be the front window or the child window of my app...anyone have any advil handy? :).