OpenDocument4all - Info and tools about OpenDocument
Sunday, 05 February 2012
Home arrow Forum
Forum Statistics
Total user: 89
Total message: 179
Main Menu
Home
My Blog
AODL - Project
AODC - Project
OO Development & Info
Forum
About OpenDocument ...
Search
News
Contact Us
Login Form





Lost Password?
No account yet? Register
Sourceforge.net

SourceForge.net - Goto the project homepage
Project site on SF.net

 

Demand OpenDocument

 

Countomat Webcounter und Webstatistik (Statistik & Logfileanalyse, Counter)

OpenDocument4all-Forum

 
Center Justify a Document Header
Date: 2008/04/07 17:59 By: Kenneth Minear Status: User  
Karma: 0  
Fresh Boarder

Posts: 1
graphgraph
This should be simple but it is eluding me; I want to center my document header, could anyone give me a clue on how to do this? Sample code:

Imports System
Imports System.IO
Imports AODL.Document.Content.Tables
Imports AODL.Document.Content.Text
Imports AODL.Document.TextDocuments
Imports AODL.Document.Styles

Public Class cODTTable

#Region " AddHeader "
Public Sub AddHeader(ByRef Doc As TextDocument, _
ByRef HeaderText As String)

Dim header As Header = New Header(Doc, Headings.Heading_20_4)
Dim textCol As ITextCollection = TextBuilder.BuildTextCollection(Doc, HeaderText)

header.TextContent = textCol

Doc.Content.Add(header)

End Sub
#End Region

End Class


Thanks for any response, I just started using the AODL libraries,,,
Kenn
(obviously this is VB.Net code)...
The administrator has disabled public write access.

Quick jump
Download area
Who's Online
We have 29 guests online
Polls
Should AODL and AODC also implement export as PDF and RTF?
 
Popular
© 2005 MamboZ. All rights reserved.