HighTechTalks DotNet Forums  

writing excel files

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss writing excel files in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jeff Goble
 
Posts: n/a

Default writing excel files - 09-17-2004 , 08:24 PM






Currently I'm using the Jakarta POI project to write data in Excel file
format. Is there something equivalent available in .NET as we're thinking
of converting to J#?
Or, can I use third-party jar files in J#?
Thanks.

Jeff



Reply With Quote
  #2  
Old   
Bruno Jouhier [MVP]
 
Posts: n/a

Default Re: writing excel files - 09-18-2004 , 01:28 PM






"Jeff Goble" <jeffgoble (AT) prunethis (DOT) earthlink.net> a écrit dans le message de
news: efe6uXRnEHA.3172 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Quote:
Currently I'm using the Jakarta POI project to write data in Excel file
format. Is there something equivalent available in .NET as we're thinking
of converting to J#?
Or, can I use third-party jar files in J#?
Thanks.
There are some third party libraries that read and write Excel files without
going through Excel automation (so you can deploy your app on PCs that don't
have Excel). Take a look at http://www.syncfusion.com/Products/excelrw.aspx
for example.

Bruno.

Quote:
Jeff





Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: writing excel files - 09-22-2004 , 02:41 PM



"Jeff Goble" <jeffgoble (AT) prunethis (DOT) earthlink.net> wrote

Quote:
Currently I'm using the Jakarta POI project to write data in Excel file
format. Is there something equivalent available in .NET as we're thinking
of converting to J#?
Or, can I use third-party jar files in J#?
Thanks.

Jeff
Hi Jeff,

To generate Excel and Word in .NET or Java you can use SoftArtisans OfficeWriter:

http://officewriter.softartisans.com

-Chris


Reply With Quote
  #4  
Old   
John Mott
 
Posts: n/a

Default Re: writing excel files - 09-25-2004 , 01:23 AM



Hi Jeff,

Very timely post. I have just today grabbed all of the POI stuff and am
trying to port it to J#. I've run across an issue, perhaps we can help each
other out. I'm more comfortable with C++ and VB.net, and deciced to use J#
just to minimize porting hassles, but its not my strength.

First, to the others in this topic, Automation is not desirable when you
want a general purpose utility that may run in the background. Automation is
explicitly described as dangerous outside of desktop interactive situations.
Unfortunatley you have to get down and dirty and write OLE 2.0 container
files. I had hoped that there would be .NET OLE 2.0 calls but could not find
them.

The POI stuff seems, so far, to be marvelous to work with.

I actually got the POI file system code ported to J# in about 2 hours. I was
impressed, never having written a J# program before.

After porting I called their test routine, which read in and wrote out the
file, and it worked! Excel read the output file with no errors. The only
change i had to make was to convert calls to Java.Arrays functions not
supported by J#, which was a snap.

Next I moved on to HSSF, which implements the Excel file format (within the
POI)

I'm running into problems with the java.Stack type. The POI code uses the
Stack type and then wants to access those variables as a list (ie. calling
'get', not 'pop'), and Visual Studio is complaing about this. It doesn't
like the java.Stack data type.

I'd be happy to send you the J# project as i have it now if you have J#
expertise and would be willing to share the results.

John Mott
VP Software Development
CRE Technologies
johnmott (AT) comcast (DOT) net


"Jeff Goble" <jeffgoble (AT) prunethis (DOT) earthlink.net> wrote

Quote:
Currently I'm using the Jakarta POI project to write data in Excel file
format. Is there something equivalent available in .NET as we're thinking
of converting to J#?
Or, can I use third-party jar files in J#?
Thanks.

Jeff





Reply With Quote
  #5  
Old   
John Mott
 
Posts: n/a

Default Re: writing excel files - 09-25-2004 , 02:30 PM



This describes the issues involving server side automation.

http://support.microsoft.com/default...b;en-us;257757

John


"Lars-Inge Tønnessen [VJ# MVP]" <http://emailme.larsinge.com> wrote in
message news:%23yQkxCwoEHA.2864 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Quote:
Hi John,

Automation is explicitly described as dangerous
outside of desktop interactive situations.

Why is this dangerous?

Let say we have the following system:
IE -> IIS -> ASP.NET -> Excel

The ASP.NET layer is parsing all input from the IE users not to include
anything they should not be able to do.


( I know lots of people are using Power Point from eg PHP in small
businesses for internal usage. So non-computer people (eg. car mechanics)
can easily generate presentations. )


Cheers,
Lars-Inge





Reply With Quote
  #6  
Old   
George Birbilis [MVP J#] [9880]
 
Posts: n/a

Default Re: writing excel files - 09-30-2004 , 03:44 PM



Quote:
If you intend to use this (MSFT Excel) through a web-page (ASP.NET) or
multi
user environment (remoting.net / webservices), you should probably consult
the lisence agreement first. =)
Microsoft doesn't suggest automating Excel from multithreaded apps, for
performance and stability reasons from what I've read in the past

there shouldn't be some licensing problem, unless maybe if you make a
web-based Excel front-end that just uses Excel under the hood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <birbilis (AT) kagi (DOT) com> [Microsoft MVP J#]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. .......................





Reply With Quote
  #7  
Old   
George Birbilis [MVP J#] [9880]
 
Posts: n/a

Default Re: writing excel files - 09-30-2004 , 03:45 PM



Quote:
I'm running into problems with the java.Stack type.
Probably because J# 1.1 (Visual Studio 2003) only support JDK 1.1.4 and a
few extra collections.
grab the "Supplemental UI library" for J# from MS J# site. It should have
Collections support equivalent to Sun Java1.2 (apart from the Swing stuff it
has in there)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <birbilis (AT) kagi (DOT) com> [Microsoft MVP J#]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. .......................





Reply With Quote
  #8  
Old   
George Birbilis [MVP J#] [9880]
 
Posts: n/a

Default Re: writing excel files - 09-30-2004 , 03:45 PM



Quote:
That would be in the java.util.* collection.
Still no support for RMI etc.. =)

I read JLCA (Java Language Convertion Assistant [Java->C#]) just added RMI
support, so wonder why J# hasn't yet (maybe they're planning it)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <birbilis (AT) kagi (DOT) com> [Microsoft MVP J#]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. .......................





Reply With Quote
  #9  
Old   
eusdart
 
Posts: n/a

Default Re: writing excel files - 10-13-2004 , 04:53 PM




Jeff Goble wrote:
Quote:
*Currently I'm using the Jakarta POI project to write data in Exce
file
format. Is there something equivalent available in .NET as we'r
thinking
of converting to J#?
Or, can I use third-party jar files in J#?
Thanks.

Jeff

-
eusdar
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.