Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print from preview selects wrong area
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00909045
Message ID:
00909079
Views:
17
>What's the current work area when error occurs? Is't one of views?

Yes, it is one of the views - if it is not a coincidence, it is the one from which last records were 'exported' to the cursor.

>...Do you've any code in the Form/Page Activate?

Yes, I set some form properties and enable/disable some controls. In the page with the problem, I had a grid.setfocus, but I disabled that and it didn't make any difference. Also, as I said, the table that needs to be selected IS the recordsource of the grid.

>... Any timers in effect?
No.


>
>>Thanks Borislav and Sergey,
>>That is probably what I remembered too, in fact, before posting I did put a line to explicitly set focus on another control, and it didn't help.
>>
>>Unfortunately, it is probably something else... because:
>>- the steps to print are the same for all pages (it is actually class code and shortcut menu code, not form code), but the error only happens on the page with cursor.
>>- the table that needs to be selected is precisely the recordsource table of the grid, so I should be OK even if the FAQ applies.
>>- when the preview phase of the statement occurs, the selected table is correct, it changes between the preview and print
>>- something I forgot to mention: if I go through the print process again (i.e. right click to get the shortcut menu, print option, click print icon on preview toolbar and OK in the print to dialog) all is ok! The same thing if I exit the preview window first time (instead of printing), and go back, then it will print without error.
>>As you see in the code, I have a SELECT (lcTable) right before the REPORT FORM.
>>
>>Obviously, the change in the work area, when it happens, it happens inside the REPORT FORM, between PREVIEW and PRINT.
>>What do you think?
>>
Doru
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform