In my report control class, I have a section of code that copies a report to
a temporary file and then creates a listener and then outputs the report to
the temporary file. (All my reports are included in the application so that
users can not make modifications and break them.)
The code that creates the temporary file is simple:
lcNewFile=sys(2015)+".frx"
Then i copy the report to this file via copy structure exte
Then I change the expr field to hold number of copies, printer, tray, etc.
Then in the listener the following code is used to generate the report
With oRepts
.listenertype=1 && Preview
.AddReports(lcNewFile)
.RunReports(.t.)
endwith
So basically what I am asking is all I need to do is to add the 'lbx'
extension in the lcNewFile line?
i.e.
lcNewFile=sys(2015)+'.lbx'
and the listener should be able to run the labels no problem.
(I know it would be a simple change to test it out, however I do not have a
need to print labels, but it on aq future to do list.)
Mike
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.