Hi Juergen,
That is what i found strange. I did not set any filters. Even when i did not do any programatically, I simply used openoffice to open the MS document using swriter and save as ODT document. The header in section 2 is still lost. However, different headers in section 1 are retained. Or are there filters automatically set with the openoffice 'save as' function? > Date: Mon, 24 Aug 2009 10:29:36 +0200 > From: [email protected] > To: [email protected] > CC: [email protected] > Subject: Re: [api-dev] MS document header formatting not retained in OO > > Hi Wei Min, > > it sounds like a filter problem. Once a document is loaded in the > internal document model the API access should be same regardless the > format. Please someone correct me if i am wrong > > Juergen > > Wei Min Teo wrote: > > Hi all, > > > > > > > > I am trying to open and read the different headers of different pages on a > > document in order to sort them. So far, my code works fine for openoffice > > files, i'm able to access each page and get their relevant pagestyle names > > to get the different headers. However, using this same code on MS files > > however seem to result on a bug. The problem is as follows: > > > > > > > > I am able to access the headers fine for only the first section. If there > > are headers on a new section, the headers read by the program appears as > > "". However, when i physically open the MS document, I am able to > > physically see the header of the second section. But I am just not able to > > get it programatically, I also lose that formatting when i save it as a ODT > > file. > > > > > > > > Am I doing something wrong or there are just some compatability issues with > > MS documents? Would this be updated with future versions of the sdk? I am > > currently using 3.1. > > > > > > > > Thanks. > > > > > > > > > > > > Cheers, > > > > > > > > Wei Min > > > > _________________________________________________________________ > > With Windows Live, you can organize, edit, and share your photos. > > http://www.microsoft.com/singapore/windows/windowslive/products/photo-gallery-edit.aspx > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > _________________________________________________________________ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/
