OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

failure of function of aPrintOption

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
smallone56
Newbie
Newbie


Joined: 01 Nov 2007
Posts: 1

PostPosted: Thu Nov 01, 2007 10:20 pm    Post subject: failure of function of aPrintOption Reply with quote

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
View user's profile Send private message
jrkrideau
Super User
Super User


Joined: 08 Aug 2005
Posts: 6732
Location: Kingston ON Canada

PostPosted: Fri Nov 02, 2007 5:33 am    Post subject: Re: failure of function of aPrintOption Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group