WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Anyone has any idea about XF: Extended Format (E0h) record ?

 
   Home -> Office -> Data Map RSS
Next:  Error in loading DLL - repost  
Author Message
KongHu

External


Since: May 23, 2004
Posts: 2



(Msg. 1) Posted: Sun May 23, 2004 9:58 pm
Post subject: Anyone has any idea about XF: Extended Format (E0h) record ?
Archived from groups: microsoft>public>excel>datamap, others (more info?)

Hey Gentry,

I am writing a program to extract data from excel file directly. having an
issue on the XF record.
According the document from microsoft(Office 97 document).
Every cell keep a XF index point to the XF table, you can get the format
ID from the XF table, but I am trying this method against several excel
file, I found the same format(for example 12,345.00) map to different
format ID, in my case it's 176/179, anyone has any idea about how to
get the format information of the cell ?

any input is appreciated.


Thanks,

Tim
--
Back to top
Login to vote
John McNamara

External


Since: May 24, 2004
Posts: 2



(Msg. 2) Posted: Mon May 24, 2004 10:54 pm
Post subject: Re: Anyone has any idea about XF: Extended Format (E0h) reco [Login to view extended thread Info.]
Archived from groups: microsoft>public>excel>sdk (more info?)

On Sun, 23 May 2004 20:58:30 -0700, "KongHu" wrote:

 >Every cell keep a XF index point to the XF table, you can get the format
 >ID from the XF table, but I am trying this method against several excel
 >file, I found the same format(for example 12,345.00) map to different
 >format ID, in my case it's 176/179, anyone has any idea about how to
 >get the format information of the cell ?


An XF (0xE0) record contains formatting information which, in relation
to Excel's "Format Cells" dialog, corresponds to the Alignment,
Border, Patterns and Protection tabs.

It also contains references to two other BIFF records: FONT (0x31) and
FORMAT (0x1E). These correspond to the Font and Number tabs in the
"Format Cells" dialog.

Thus two cells with the same number format but different border styles
will have different XF ids but should have the same XF->FORMAT ids.

See also: <a style='text-decoration: underline;' href="http://sc.openoffice.org/excelfileformat.pdf" target="_blank">http://sc.openoffice.org/excelfileformat.pdf</a>

John.
--<!-- ~MESSAGE_AFTER~ -->
Back to top
Login to vote
KongHu

External


Since: May 23, 2004
Posts: 2



(Msg. 3) Posted: Mon May 24, 2004 11:34 pm
Post subject: Re: Anyone has any idea about XF: Extended Format (E0h) reco [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hey John,

Thanks for the response. Yes, that's what I thought it should be.
but it seems not correct in my situation.

I have two simple excel files.
the first cell of the the first row of both excel files are using
the same number format Number/(1,234.00) no color.

for the first file. the Cell->XFIndex is :24
XF[24]->FormatIndex is: 187
for the second file. the Cell->XFIndex is :23
XF[23]->FormatIndex is: 184

I noticed that 187/184 is greater than 163, does that means the format
is user defined ? but as you see above, I am using a standard format.

any idea about what's happening there ?

Thanks so much,

Tim



"John McNamara" <jmcnamara RemoveThis @cpan.org> wrote in message
news:mkr4b0hsal775nf3qqbfuegpq0vhm3i157@4ax.com...
 > On Sun, 23 May 2004 20:58:30 -0700, "KongHu" wrote:
 >
  > >Every cell keep a XF index point to the XF table, you can get the format
  > >ID from the XF table, but I am trying this method against several excel
  > >file, I found the same format(for example 12,345.00) map to different
  > >format ID, in my case it's 176/179, anyone has any idea about how to
  > >get the format information of the cell ?
 >
 >
 > An XF (0xE0) record contains formatting information which, in relation
 > to Excel's "Format Cells" dialog, corresponds to the Alignment,
 > Border, Patterns and Protection tabs.
 >
 > It also contains references to two other BIFF records: FONT (0x31) and
 > FORMAT (0x1E). These correspond to the Font and Number tabs in the
 > "Format Cells" dialog.
 >
 > Thus two cells with the same number format but different border styles
 > will have different XF ids but should have the same XF->FORMAT ids.
 >
<font color=purple> > See also: <a style='text-decoration: underline;' href="http://sc.openoffice.org/excelfileformat.pdf</font" target="_blank">http://sc.openoffice.org/excelfileformat.pdf</font</a>>
 >
 > John.
 > --
 ><!-- ~MESSAGE_AFTER~ -->
Back to top
Login to vote
John McNamara

External


Since: May 24, 2004
Posts: 2



(Msg. 4) Posted: Thu May 27, 2004 9:15 pm
Post subject: Re: Anyone has any idea about XF: Extended Format (E0h) reco [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 24 May 2004 22:34:32 -0700, "KongHu" wrote:

 >I have two simple excel files.
 >the first cell of the the first row of both excel files are using
 >the same number format Number/(1,234.00) no color.
 >
 >for the first file. the Cell->XFIndex is :24
 > XF[24]->FormatIndex is: 187
 >for the second file. the Cell->XFIndex is :23
 > XF[23]->FormatIndex is: 184

If you start with two new files and add the same number format to each
one then you will get the same index numbers.

However, if exactly the same formatting hasn't been applied to each
workbook in the same sequence then the index numbers will be
different. It isn't the case that "1,234.00" will always map to the
same index (unless it is one of the special default internal formats
that isn't stored as a string).

 >I noticed that 187/184 is greater than 163, does that means the format
 >is user defined ? but as you see above, I am using a standard format.

That is correct. User defined number formats start from 0xA4 (164).

You may also find some useful information here:

<a style='text-decoration: underline;' href="http://chicago.sourceforge.net/devel/docs/excel/" target="_blank">http://chicago.sourceforge.net/devel/docs/excel/</a>

<a style='text-decoration: underline;' href="http://search.cpan.org/dist/Spreadsheet-ParseExcel/" target="_blank">http://search.cpan.org/dist/Spreadsheet-ParseExcel/</a>

John.
--<!-- ~MESSAGE_AFTER~ -->
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Data Map All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support