Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13391

Re: Reseting or Reloading Printer in Report Pro

From Jamal <nospam@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Reseting or Reloading Printer in Report Pro
Date 2021-07-14 20:43 -0400
Organization Aioe.org NNTP Server
Message-ID <sco0c8$1rq3$1@gioia.aioe.org> (permalink)
References <4c882eb7-fbf0-413f-9884-7a40345b1823n@googlegroups.com>

Show all headers | View raw


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?
> 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Reseting or Reloading Printer in Report Pro Mark Clement <mjclement1000@gmail.com> - 2021-07-13 05:35 -0700
  Re: Reseting or Reloading Printer in Report Pro Jamal <nospam@example.com> - 2021-07-14 20:43 -0400
    Re: Reseting or Reloading Printer in Report Pro Mark Clement <mjclement1000@gmail.com> - 2021-07-15 02:49 -0700

csiph-web