• Reseting or Reloading Printer in Report Pro

    From Mark Clement@21:1/5 to All on Tue Jul 13 05:35:43 2021
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jamal@21:1/5 to Mark Clement on Wed Jul 14 20:43:57 2021
    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?


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Clement@21:1/5 to Jamal on Thu Jul 15 02:49:24 2021
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)