Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Labels as Opposed to Reports and reportlistener classes
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Labels as Opposed to Reports and reportlistener classes
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01162259
Message ID:
01162259
Views:
51
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
Map
View

Click here to load this message in the networking platform