Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blank fields after printing
Message
 
 
To
26/10/2000 18:41:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00434670
Message ID:
00435386
Views:
14
>>>When printing a report from the form, after the report is successfully sent to the printer, the form fields blank out. However if I preview the report from the form, cancel it and return to the form, the fields are intact. Why did the fields blank out after I print the report to the printer but not preview?
>>>
>>>The code reads as follows:
>>>
>>>In cmdPrint.click()
>>>* Print report to printer
>>>REPORT FORM reports\planrpt NOEJECT NOCONSOLE TO PRINTER for PlanType = thisform.txtPlanType.value
>>
>>Dodi,
>>
>>You are probably at end of file. Try:
>>
>>nThisRecord = RECNO()
>>REPORT FORM blah blah
>>GO nThisRecord
>
>It works! Thanks Wayne! (this is really strange, I didn't have problems with other forms...)

Glad to help! There was probably something a little different on your other forms, like a persistent relationship, a unique environment, or something that maintained the record pointer after the report. No biggie there as a rule.
\/\/ayne
Previous
Reply
Map
View

Click here to load this message in the networking platform