Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping FP in the background when printing report
Message
From
29/10/2001 12:05:42
Larry Huisingh
Lockheed Martin Information Technology
Richland, Washington, United States
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00571206
Message ID:
00574582
Views:
27
>>I have a VFP application I wrote that runs in the background and prints reports whenever the appropriate data files appear in its data directory. The data files come from a C++ app. The problem I am seeing is that when the report runs the VFP desktop comes to the front. Is there a way I can make sure the desktop stays minimized while the app runs? Is it also possible to keep the "Printing..." window hidden? If the latter is not possible then the former will suffice.
>
>See Message #542800 for how to hide "Printing..." window.
>
>>For what it's worth, right before I run the report I display a couple messages on the VFP desktop. Does that cause the VFP window to come to the front?
>
>Comment out the code that shows those messages and run app again :)

I commented out the displayed messages and I even made sure that
_SCREEN.WindowState = 1
and still the VFP desktop comes up when the REPORT command is issued. I traced through the code in the debugger and, sure enough, only when the REPORT command is executed does the desktop get restored. I can re-minimize after the report but this would still be very distracting. I'll take a look at the message mentioned for the "Printing..." window issue but I imagine it will have the same effect.
Larry Huisingh
Lockheed Martin Information Technology
Richland WA USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform