General information
Category:
Reports & Report designer
Title:
Labels as Opposed to Reports and reportlistener classes
Environment versions
Network:
Windows 2003 Server
does the reportlistener stuff work with label files as well?
The reason: I have a base class that stores info about a report and uses a listenener to print from. In my startup code, I take the report name and create a new name (SYS(2015), so that I can modify the expr field to set default properties like printer tray, printer, no of copies etc. (All reports are built into application so users cannot modify them directly...)
The code is:
*- Name of new report file
lcReportFile=sys(2015)+'.frx'
*- then I open the named report and copy the structure to the new one (named above) This allows me to do the above changes to the expr field.
Then I call this routine to preview the report.
with this.oReport
.LISTENERTYPE=1
.AddReport(oRepts.lcReportFile)
.RunReports(.t.)
endwith
so would it work with labels i.e:
lcReportFile=sys(2015)+".lbx"
Would that be the only change required?
TIA,
Mike
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only