Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Print one record from form 2002-07-16 -- Greg Wajszczuk > I have a button on a form to print the record. I have done this many times
> successfully, but.... Problem is I get an error message of no records to
> print. Saving the record and reopening the form allows me to print the
> record fine.
I assume, that the problem appears when you insert a new record
and try to print it before saving ?
Note, that the report template is designed to get the record(s)
to be printed from file, so if your record has not been saved, it cannot
get it. If you just want to print one record, here is the solution :
1. In ThisReport.OPEN put RETURN statement before parent call
2 In ThisReport.RESET as well
3 . In ThisReport.NEXT Prodedure (Byte ProcessedRecords = True)
SELF.RecordsProcessed +=1
IF SELF.RecordsProcessed = 1 THEN
RETURN Level:Benign
ELSE
RETURN Level:Notify
END
This will make the report template print one detail with current
record buffer values.It works for me in C5 ABC
Today is November 21, 2024, 7:04 am This article has been viewed 35214 times.
|
|