Difference between revisions of "Talk:AODL example 1"

From Apache OpenOffice Wiki
Jump to: navigation, search
(At the End)
(At the End)
Line 27: Line 27:
 
   using AODL.Document.Content.Text;
 
   using AODL.Document.Content.Text;
  
==At the End==
+
==At the End of USING==
  
 
I' don't know which is needed but the Compiler gives OK.
 
I' don't know which is needed but the Compiler gives OK.
 +
 +
==Simple Tests show Problems==
 +
 +
I was only testing in simple Way this example by manipulating the Row an Column Indexis to see,
 +
if it is working. But the Result is frustrating. There is no way to put the Contens in the right Cell.

Revision as of 13:42, 9 November 2007

I am trying to port this code to VB.NET using Visual Basic 2005 Express Edition, but I'm running into some problems.

I'll just take the first and the last code lines, trying to generate a spreadsheet document, and save it.

 Public Class Class1
   Dim _spreadsheetDocument As New AODL.Document.SpreadsheetDocuments.SpreadsheetDocument
   _spreadsheetDocument.SaveTo("formated.ods")
 End Class

The VisualBasic Editor tells me however, that it expects a declaration.

It would be nice if someone could make a Visual Basic version of the same code, that works.

Using missing

It would be nice to see which elemets I must bind by Using. So I'bind as following:

using Statement Source

 using AODL.Document.SpreadsheetDocuments;
 using AODL.Document.Collections;
 using AODL.Document.Content;
 using AODL.Document.Content.Tables;
 using AODL.Document.TextDocuments;
 using AODL.Document.Styles;
 using AODL.Document.Content.Text;

At the End of USING

I' don't know which is needed but the Compiler gives OK.

Simple Tests show Problems

I was only testing in simple Way this example by manipulating the Row an Column Indexis to see, if it is working. But the Result is frustrating. There is no way to put the Contens in the right Cell.

Personal tools