Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: Using Excel as Data Source for Crystal Reports (with Java SDK)

$
0
0

Hi,

actually that's more or less what I tried after a couple of hours of debugging.

I created a Sample Report (with a Sub-Report) with the Crystal Report Designer and after that I created my custom "Information Extractor" (haven't used the one in the examples you provided.

 

Anyhow I downloaded the "Information Extractor" from the Example and just executed it. Here is the Result:

 

               
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
                        Main Report: Excel-Report02.rpt                   
                         Table Properties
Name'Report$'
Alias'Report_'
Qualified Name'Report$'
ConnectionInfo Properties
User Namenull
Password
KindSQL
ConnectionInfo Atttribute Properties
Database TypeExcel 8.0
System Database Path
PreQEServerNameE:\SampleSalesData.xls
Server TypeAccess/Excel (DAO)
Database DLLcrdb_dao.dll
Session UserID
Database NameE:\SampleSalesData.xls
Server NameE:\SampleSalesData.xls
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
Subreport: SampleSubreportGoesHere
Table Properties
Name'Report$'
Alias'Report_'
Qualified Name'Report$'
ConnectionInfo Properties
User Namenull
Password
KindSQL
ConnectionInfo Atttribute Properties
Database TypeExcel 8.0
System Database Path
PreQEServerNameE:\SampleSalesData.xls
Server TypeAccess/Excel (DAO)
Database DLLcrdb_dao.dll
Session UserID
Database NameE:\SampleSalesData.xls
Server NameE:\SampleSalesData.xls

If you spot a missing Property or a Property that is set wrong, please let me know.

I just checked and couldn't spot a difference (I set a bunch of more properties, but removing them does not help here).

 

Thanks,

 

 

BTW: With my custom "Information Extractor" I was able to get the correct Properties for the XML-DataSource.

 

EDIT: I should note that the Report I want to create with the Java Code does not have a Sub-Report (yet).


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>