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


Groups > comp.lang.clipper.visual-objects > #13390 > unrolled thread

Reseting or Reloading Printer in Report Pro

Started byMark Clement <mjclement1000@gmail.com>
First post2021-07-13 05:35 -0700
Last post2021-07-15 02:49 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#13390 — Reseting or Reloading Printer in Report Pro

FromMark Clement <mjclement1000@gmail.com>
Date2021-07-13 05:35 -0700
SubjectReseting or Reloading Printer in Report Pro
Message-ID<4c882eb7-fbf0-413f-9884-7a40345b1823n@googlegroups.com>
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?

[toc] | [next] | [standalone]


#13391

FromJamal <nospam@example.com>
Date2021-07-14 20:43 -0400
Message-ID<sco0c8$1rq3$1@gioia.aioe.org>
In reply to#13390
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?
> 

[toc] | [prev] | [next] | [standalone]


#13392

FromMark Clement <mjclement1000@gmail.com>
Date2021-07-15 02:49 -0700
Message-ID<80c977e3-7de0-4cff-a465-660b2b9070ddn@googlegroups.com>
In reply to#13391
On Thursday, 15 July 2021 at 01:44:01 UTC+1, Jamal wrote:
> 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? 
> >
You are right this is an option.

The reason i am after a reset is there are lots of options in properties, which they could have set and i do not want to check them all. If there are no other answers this is an option as which page to print is the current problem.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web