RavindraPatil


Dear friends,

I use vfp 6. I have a form with a command button. In the click event of the button I have used "report form xyz prev" command. But when i click it, preview window is not displayed and only its toolbar appears on screen.

I opened report in report designer and clicked on File -> Print Preview. At this time preview is displayed but not when clicked on command button.

please help........




Re: report preview window is not displayed

Naomi Nosonovsky


What is your form ShowWindow property set to

Also I personally never shorten VFP reserved words, i.e. I would write it "REPORT FORM myReport PREVIEW".

You can also always define a form to run your preview window in.






Re: report preview window is not displayed

RavindraPatil

Thanx for responding

Form's ShowWindow property set to 0. I cheked my other similar form that is showing the report window and that form's ShowWindow property is also set to 0. then what's wrong with this particular form






Re: report preview window is not displayed

dni

You may try to add any table in data environment for report.




Re: report preview window is not displayed

Naomi Nosonovsky

Hard to really say. The Preview would not show if you don't have data (e.g. number of records = 0) in the cursor which drives the report. Could it be the case here



Re: report preview window is not displayed

RavindraPatil

DEAR Naomi Nosonovsky

You are right. I am sorry to trouble you people. I must had to check that elementry thing.

thank u all very much





Re: report preview window is not displayed

Naomi Nosonovsky

I made similar mistakes few times myself and then can only say, Doh Smile

No problem, always glad to help.





Re: report preview window is not displayed

RavindraPatil

RavindraPatil wrote:

Dear friends,

I use vfp 6. I have a form with a command button. In the click event of the button I have used "report form xyz prev" command. But when i click it, preview window is not displayed and only its toolbar appears on screen.

I opened report in report designer and clicked on File -> Print Preview. At this time preview is displayed but not when clicked on command button.

please help........

The actual problem was with the form. Its 'AlwaysOnTop' property was set to .T. When I changed it to .F. the above problem was solved.

I heartly thank u who tried to solve my problem.





Re: report preview window is not displayed

Naomi Nosonovsky

You're welcome. Glad you solved the problem (seems like your original response was too quick and no data was not really a problem )