To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96312
                 Issue #|96312
                 Summary|Print from Macro - "CopyCount" property squaring numbe
                        |r of copies in 2.4
               Component|Word processor
                 Version|OOo 2.4.1
                Platform|Unknown
                     URL|
              OS/Version|Linux
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|printing
             Assigned to|writerneedsconfirm
             Reported by|blabj





------- Additional comments from [EMAIL PROTECTED] Tue Nov 18 15:23:10 +0000 
2008 -------
Just upgraded corporate OO installation from 2.3 to 2.4 (2.4.1-1ubuntu2)- have
some macros which utilize the "CopyCount" printer property that worked fine in
2.3, but not appropriately in 2.4.

If specifying value of "1" - one copy is printed.

If "2", then 4 copies are printed.

If "3", then 9 copies are printed.

For "4" - 16, etc.

IE. it is squaring the # of copies.

Was using this (snipet):

  'variable cc holds number of copies required
  mPrintopts1(0).Name = "CopyCount"
  mPrintopts1(0).Value = cc

  mPrintopts1(1).Name = "Name"
  mPrintopts1(1).Value = "<" & sPrinter & ">"

  mPrintopts1(2).Name = "Wait"
  mPrintopts1(2).Value = True

  oPrinter = oDoc.getPrinter()
  For i = LBound(oPrinter) to UBound(oPrinter)
        If oPrinter(i).Name = "Name" Then
                oPrinter(i).Value = sPrinter
        End If
  Next i
  oDoc.setPrinter(oPrinter)
  oDoc.Print(mPrintopts1())


For now I've changed macro to this instead:

  mPrintopts1(0).Name = "CopyCount"
  mPrintopts1(0).Value = 1

...

  For i = 1 to cc
    oDoc.Print(mPrintopts1())
  Next i

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to