cancel
Showing results for 
Search instead for 
Did you mean: 

Export to excel.

smruti_moharana
Participant
0 Kudos

Dear Gurus,

In My Current Application i am converting my portal report to xml for that purpose i am using the jxl-2.4.2jar and jxl2.6.6jar file but i am getting error.

java.lang.NoClassDefFoundError: jxl/write/WriteException

Please note that in my webdynpro project i am adding that jar file as external library jar.

Please guide me to proceed.

Thanks & Regards,

Smruti Ranjan Moharana

Accepted Solutions (1)

Accepted Solutions (1)

lvhengel
Participant
0 Kudos

Hi,

It looks like you added the jar file to your Java Build Path in the project properties. This way it will not be deployed on the server.

It's best to include libraries in an External Library DC and add the jar files to the Public Part then add this External Library DC to your Web Dynpro DC as Used DC.

See: http://help.sap.com/saphelp_nw70/helpdata/en/5a/2e2f4234135433e10000000a155106/content.htm

Cheers,

Leo

smruti_moharana
Participant
0 Kudos

Dear Leo,

Thanks a lot for your quick response please note that i cannot addthe jxl.jar in u r guided way because my current application is a not a dc it is a webdynpro project. please suggest is there any other way to add the third party jar file to webdynpro project .

Thanks & Regards,

Smruti Ranjan Moharana

lvhengel
Participant
0 Kudos

Ok, i see. You can add the jxl.jar file to the lib directory in your Web Dynpro Project. This way the jar file will be included in the deployable Web Dynpro ear file.

In the Java Build Path you can use this jar file with Add JARs needed for compiling.

Regards,

Leo

smruti_moharana
Participant
0 Kudos

Dear Leo,

Thanks alot for your guidance,now i am getting another problem data is not converting to excel if you have step by step guide please send it.

Thanks & Regards,

Smruti Ranjan

lvhengel
Participant
0 Kudos

Hi Smruti,

You can find a blog about the jexcelapi here:

Regards,

Leo

udaykumar_kanike
Active Contributor
0 Kudos

Hi Smruti,

Here is a link of tutorial which would match with your requirement.

http://wiki.sdn.sap.com/wiki/display/WDJava/UploadingexcelfileusingWebDynproforJava

also go through these link, if you could get some help from any of them.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d01854fd-1579-2c10-63ad-dd62edca2...

http://santy.wikidot.com/web-dynpro

http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/503f22f6-b978-2a10-bf97-ddc21267e752.

Please let me know if you still face any problem.

Regards

Uday

Answers (0)