Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One additional weirdness today...
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00465374
Message ID:
00465445
Views:
15
>Hi, Nadya.
>
>Are you printing from a form with a grid, maybe? In that case, as soon as you issue the report form... if the grid had focus, it's recordsource would become selected, thus your field does not exist.
>
>You can prevent it to happen setting focus to another control prior to print. In fact, we have an invisible button on our base class form that gets the focus before printing, and restores it to where it was after.

Well, it's also could be a problem here. Yes, the form contains a Grid (several grids). This form calls completely independand application, called special. This special application consists of main program with do case, IOW,
do case
   case param1="Something"
      do something
   case param1="Another something"
      do another something
   etc.
endcase
As you can see, it runs in the form's DS. I think, this is the major problem here. Perhaps, the best solution is to create private DS by using session class (see several recent threads about it). I had a success in another application with session class.

I think, this is how I'm going to proceed to not worry about it at all. Besides, I already spent ~2 hours debugging this weird problem. Paradoxically, though, that if I issue Browse just before report form command, it works just fine.
>
>Hope this helps, and you had time to lunch. I did it at 4:30 pm today. 8-(
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform