How to Work with the Different File Formats

This tutorial will talk you through the following:

  • What different file formats are supported, and how to use them.

Let's get started

In the Step 9 tutorial we have added the following files:

File\Folder

Description

Step9.book

The budget book file with reference definition

HTM Page.htm
HTML Page.html
Open Document Text Format Document.odt
Open Office XML Document.docx
Rich Text Format Document.rtf
Word 2003 XML Document.xml
Word 2007 - 2010 Document.docx
Word 97-2003 Document.doc
Word XML Document.xml

Examples of all supported formats

 

File Formats

For the complete list of supported document formats, read the Supported Document Formats article.

If you open some of them in Notepad, they would look like gibberish.

Here is the ODT file in the Open Document Text format:



Figure 1

And this is the Word 97-2003 document:



Figure 2

Some of them, like HTML or XML, are not so cryptic:



Figure 3

Many reasons exist as to why they are so different, but for us, what is important is that the application can consume content of those files.

In the Step 9, we used HTM, HTML, XML, ODT, DOCX, DOC, RTF from multiple product suits.

And after running the Budget In Brief application



Figure 4

all the different files were combined into one document



Figure 5

 

How does it work?

The Budget in Brief application will automatically understand and load the files in the supported format. If a file is corrupted, a file format not supported, or for some other reason the file could not be opened, then the Budget in Brief application will show the error message.

In the budget.book file you just need to provide path to the file. Below is the example of the step9.book file.

<Book Name="Supported File Formats"
      Value=""Version="1.0"StyleTemplate="">
       <Section Name="Main Document Section"
                     TopMargin="1" BottomMargin="1" RightMargin="1" LeftMargin="1">
             <Section  Name="HTM Page.htm"
                             NodePath="Files\HTM Page.htm"
                             PageBreakAfter="True"/>
             <Section  Name="HTML Page.html"
                             NodePath="Files\HTML Page.html"
                             PageBreakAfter="True"/>
             <Section  Name="Open Document Text Format Document.odt"
                             NodePath="Files\Open Document Text Format Document.odt"
                             PageBreakAfter="True"/>
             <Section  Name="Open Office XML Document.docx"
                             NodePath="Files\Open Office XML Document.docx"
                             PageBreakAfter="True"/>
             <Section  Name="Rich Text Format Document.rtf"
                             NodePath="Files\Rich Text Format Document.rtf"
                             PageBreakAfter="True"/>
             <Section  Name="Word 2003 XML Document.xml"
                             NodePath="Files\Word 2003 XML Document.xml"
                             PageBreakAfter="True"/>
             <Section  Name="Word 2007 - 2010 Document.docx"
                             NodePath="Files\Word 2007 - 2010 Document.docx"
                             PageBreakAfter="True"/>
             <Section  Name="Word 97-2003 Document.doc"
                             NodePath="Files\Word 97-2003 Document.doc"
                             PageBreakAfter="True"/>
             <Section  Name="Word XML Document.xml"
                             NodePath="Files\Word XML Document.xml"
                             PageBreakAfter="True"/>
       </Section>
</Book>

 

Conclusion

Do not limit yourself, use all the supported file formats. The Budget in Brief application will automatically understand and load the files, set margins, set page breaks, and will also load headers and footers.


Site Map | Printable View | © 2008 - 2017 Budget In Brief | Powered by mojoPortal | HTML 5 | CSS | Design by styleshout