Charlie,
Genius, that was it!!!!!

Once I set focus to a textbox before printing the report it printed
perfectly. I wonder why it doesn't affect the Preview mode of "report
form..." though?

I've never come across it before because I normally have a print class which
displays a modal form with no grids etc to allow selection of the printeror
print preview and I've always used this since the year dot. I'll knock up a
similar class for the Organizer to allow me to select a printer as opposed
to "report form printer prompt..."

Thanks again Charlie especially but everyone else who took time out to look
at the problem. This list is THE best.

Dave Crozier
 The secret to staying young is to live honestly, eat slowly, and to lie
about your age 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: 16 August 2006 15:56
To: ProFox Email List
Subject: RE: VFP "report form" Error

At 03:26 PM 8/16/2006 +0100, Dave Crozier wrote:
>Malcolm,
>I've just done that and the current alias it is pointing to in the 
>Page/Report header starts off OK but changes in the detail line to this 
>"other cursor". It is just as though VFP is NOT picking up the correct 
>alis
...

I've had a problem in relation to grids and this type issue. But if you
don't have any grids active while you're doing the report, you can probably
just ignore the rest of this message. I'm not sure it still exists in VFP
(8 or 9). But here is what I've encountered:

If you do a REPORT FORM call while a Grid on a form has focus, the current
alias will get switched to the Grid's recordsource after the REPORT FORM
gets called. This happens IF the grid has focus at the time the report is
invoked. I couldn't find the KB article on MS's web site.

My workaround was to make sure and shift focus off any grid before doing the
REPORT FORM command.

This may explain some of the behavior you're seeing. E.g. if you do some
steps which end up moving focus off the grid (or off the form containing the
grid), the REPORT FORM command would work.

-Charlie



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to