Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems trying to print a record
Message
 
To
06/11/2002 14:44:05
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00718966
Message ID:
00719547
Views:
14
>How user moves from record to record: grid, listbox, something else?
>The user moves from record to record with the wzbtns class
>
>How do you print a record?
>Simply i search the record with the search button and then i push the print button
>
>Can you post code that prints record.
>Unfortunately is a class that comes with the program and i can give you the code, but i place my own button and the problem is the same, this my code:
>
numllam=thisform.text1.value
>select calls
>set filter to number =numllam
>go top
>if !eof()
>  report form calls preview
> else
>  wait windows "The record doesn't exists, please try again" nowait
>endif
>numllam=0
>set filter to
>
> Does it print blank record if the print button is clicked a few more times.
>Yes, that's right
>
>Does it print blank record if the user moves to the other record and clicks the print button?
>Yes, that's right, even if you search it before.
>
>I hope this could give you an idea of my problem. Thanks for your patience. Feel free to ask more.

Edgar;

Can you try different code? Perhaps:
Local numllam
numllam = thisform.text1.value

* If user selects value…
If len(alltrim(numllam)) > 0 then	
	select  * from calls ;
		where number = numllam
		into cursor vCalls

	if _tally > 0 then
		report form calls preview
	else
		wait window "The record doesn't exists, please try again" nowait
	endif

else	
	wait window "No record selected" nowait
endif
Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform