Print setting by vb.net

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Print setting by vb.net

Postby keosge » Sun Dec 16, 2012 12:06 am

This time i think i try an hard quest.

I need to set by VB.net code the page style of sheet to autofit print area; i can set this by Format Menus-> Page -> sheet tab, scale option.

I don't know where to start to search.....

thank a lot
OpenOffice 3.4 on Win7
keosge
 
Posts: 5
Joined: Fri Dec 14, 2012 12:50 am

Re: Print setting by vb.net

Postby Charlie Young » Sun Dec 16, 2012 1:47 am

keosge wrote:This time i think i try an hard quest.

I need to set by VB.net code the page style of sheet to autofit print area; i can set this by Format Menus-> Page -> sheet tab, scale option.

I don't know where to start to search.....

thank a lot


A quickie, so just regard it is a starting point.

Code: Select all   Expand viewCollapse view
oStyles = oDoc.getStyleFamilies()
PageStyles = oStyles.getByName("PageStyles")
DefaultPageStyle = PageStyles.getByName("Default")


The PageStyles will be full of properties discussed here.
Apache OpenOffice 4.1.1
Windows XP
User avatar
Charlie Young
Volunteer
 
Posts: 1559
Joined: Fri May 14, 2010 1:07 am


Return to External Programs

Who is online

Users browsing this forum: No registered users and 2 guests