| View previous topic :: View next topic |
| Author |
Message |
smallone56 Newbie

Joined: 01 Nov 2007 Posts: 1
|
Posted: Thu Nov 01, 2007 10:20 pm Post subject: failure of function of aPrintOption |
|
|
Dear All,
I just upgrade from 2.2 to 2.3 and discover the following marco does not work: -
Sub Pro_Agt
Dim oDoc As Object
Dim aPrintOption(1) As New com.sun.star.beans.PropertyValue
oDoc = ThisComponent
aPrintOption(0).Name = "CopyCount"
aPrintOption(0).Value = 1
aPrintOption(1).Name = "Pages"
aPrintOption(1).Value = "1"
oDoc.print(aPrintOption())
End Sub
It is of course, I haven't change any setting nor macro.
Please help. |
|
| Back to top |
|
 |
jrkrideau Super User

Joined: 08 Aug 2005 Posts: 6733 Location: Kingston ON Canada
|
Posted: Fri Nov 02, 2007 5:33 am Post subject: Re: failure of function of aPrintOption |
|
|
| smallone56 wrote: | Dear All,
I just upgrade from 2.2 to 2.3 and discover the following marco does not work: -
Sub Pro_Agt
Dim oDoc As Object
Dim aPrintOption(1) As New com.sun.star.beans.PropertyValue
oDoc = ThisComponent
aPrintOption(0).Name = "CopyCount"
aPrintOption(0).Value = 1
aPrintOption(1).Name = "Pages"
aPrintOption(1).Value = "1"
oDoc.print(aPrintOption())
End Sub
It is of course, I haven't change any setting nor macro.
Please help. |
You probably would be better off to ask this question in the Macros and API forum. _________________ jrkrideau
Kingston ON Canada
Currently using Windows 7 & OOo 3.4.0 and Ubuntu 12.04 & LibreOffice 3.5.2.2 |
|
| Back to top |
|
 |
|