>>It has to, but it
does not!
>>
>>And the funny thing, it showed Preview correctly but now it even doesn't show Preview anymore. If I comment SetFocus() and browse then preview shows up correctly but clicking Print button from the preview still gives me an error.
>
>Dunno. Seeme like you've forgotten to select the print cursor prior to printing
See my reply to Edward. I know I'm dumb, but this would be too dumb even for me.
Anyway, I'm going to work it out using private data session approach, since the focus switching trick doesn't work. That's actually a nice enhancement idea for my PrivateSessionClass. I'll add PrintReport method to it.
On the second thought, I would not be able to make this PrintReport method generic since I still have to pass the cursor <g>
If it's not broken, fix it until it is.
My Blog