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
Print setting by vb.net
Print setting by vb.net
OpenOffice 3.4 on Win7
- Charlie Young
- Volunteer
- Posts: 1559
- Joined: Fri May 14, 2010 1:07 am
Re: Print setting by vb.net
A quickie, so just regard it is a starting point.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
Code: Select all
oStyles = oDoc.getStyleFamilies()
PageStyles = oStyles.getByName("PageStyles")
DefaultPageStyle = PageStyles.getByName("Default")
Apache OpenOffice 4.1.1
Windows XP
Windows XP