If you run a report and when the printer dialog box comes up you press properties. This allows you to set up the printer how you wish (i.e. only print page 2). The report prints quite happily using the properties you selected.
The problem is if you print a report later even if you do not change anything in properties this time it still remembers what you set up earlier.
Is there a way to make the printer load the properties it had when program started?
Hi Mark,
You can try the following options:
In Report Pro 3.x, you can get the the printer info, the save it to a
config file.
Check the help file for the oReport:GetReportIntAttribute(...) or oReport:GetReportStringAttribute(...) methods.
Then you can set report object via oReport:SetReportIntAttribute(...)
or oReport:SetReportStringAttribute(...)
For Example:
oReport:SetReportIntAttribute(RPT_ATTR_FROM_PAGE, 2)
oReport:SetReportIntAttribute(RPT_ATTR_TO_PAGE, 3)
In Report Pro 2, you need to look at the the oRpReport:PrinterDevice
where you can get/set several properties.
For example:
oRpReport:PrinterDevice:Copies := 2
Good Luck!
Jamal
On 7/13/2021 8:35 AM, Mark Clement wrote:
If you run a report and when the printer dialog box comes up you press properties. This allows you to set up the printer how you wish (i.e. only print page 2). The report prints quite happily using the properties you selected.
The problem is if you print a report later even if you do not change anything in properties this time it still remembers what you set up earlier.
Is there a way to make the printer load the properties it had when program started?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 65:23:32 |
Calls: | 6,654 |
Files: | 12,200 |
Messages: | 5,331,841 |