Print setting by vb.net

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
keosge
Posts: 5
Joined: Fri Dec 14, 2012 12:50 am

Print setting by vb.net

Post by keosge »

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
User avatar
Charlie Young
Volunteer
Posts: 1559
Joined: Fri May 14, 2010 1:07 am

Re: Print setting by vb.net

Post by Charlie Young »

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

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
Post Reply