Login
`
Templates, Tools and Utilities
|
||
Icetips Article
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, 8:31 am This article has been viewed 35215 times.
|
|