# Using Excel as a Datasource

I created a report that will use Excel as a datasource. The report runs fine from my desktop. I would like to place this report on the Business Objects Server. Can anyone tell me what I would need to do in regards to the excel file.
In addition to this issue, when I moved the excel file to a shared folder and reconfigured the system dsn, the report would not run. I received an error message: could not decrypt data. Any help would be appreicated. Thanks.

Hi
Put the excel file on a network drive which is accessible by the server.
Create a Crystal Report using the Access/Excel DAO connection based on the above excel file.
Save it to the enterprise.
Hope this helps!!
Regards
Sourashree

### Similar Messages

• Error using Excel as a DataSource for Report Builder 3.0 - ODBC connection

Hi,
I'm getting this error message below while trying to use excel as a datasource within Report Builder 3.0.  I can see the columns and rows but unable to display/run the report.  Using Excel 32 bit and have the driver and user dsn created under c:/windows/syswow64/odbcad32.
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Hi Cherise,
I have commercial experience in migrating Crystal Reports to SSRS. When performing any type of migration it is always wise for the business requirements to be revisited. It is likely that the business requirements may have changed since the Crystal reports
were initially developed, etc.
I've done some research for you and the following link looks quiet impressive and offers a cheap trial, in terms of a direct migration. Please tell me how you get on; -
http://www.sqlcircuit.com/2013/08/ssrs-how-to-create-report-using-excel.html
I emphasis again I have commercial experience of lots of migration projects and it would be very unwise to not revisit the business requirements as part of the migration process.
Kind Regards,
Kieran.

• XLSQL for using Excel (XLS) as datasource in VC

Hi Benjamin,
Hope you are having a good day. I know its been a while since you worked on this piece ([url] DATE issues when using BI JDBC Excel datasource in VC;url] ) but we are trying to do the same thing you had done. Use xlSQL to connect to an excel file as a datasource for VC modeling.
We want to use the BI Java connector. I have loaded the JAR files and when we get to the Manage Connections, not sure what we enter for the Driver, URL, Schema, username and Password.
What I now see if that the Connection Test (for the BI JDBC system) works fine with the following:
Driver: com.nilostep.xlsql.jdbc.xlDriver
Connection URL (Unix box): jdbc:nilostep:excel:/reports/spec (this is the folder where I have the xls file)
FixedSchema: (should my excel file name go in here?)
FixedCatalog: (should my excel sheet name go in here?)
When I do all of this and search for TABLES in VC on that system, it says None found. Any light shed on this would be very helpful.
Thanks,
BR

Hi,
How Tou2026Configure a BI JDBC System for Visual Composer Version 1.03 u2013 March 2006
Follow all the steps... Some remarks about the steps in this document:
Step 7: add all additional .jar files that are in the /lib folder of the xlsql driver package
Step 11 - 14:  ... skip this, after step 15 restart the whole j2ee cluster, this is really needed to load the .jar files
Step 15: although optional and not the configuration you need to get it working for VC it is handy to configure this as it allows you to use the JDBC test page for debuging etc.
The only 2 parameters you need to configure with this step is:
Driver: com.nilostep.xlsql.jdbc.xlDriver
Connection URL: jdbc:nilostep:excel:/reports/spec/
...Now restart the j2ee cluster...
After the restart you can use the following url to see if the driver works: http://<hostname>:<port>/TestJDBC_Web/TestJDBCPage.jsp
Continue the configuration to allow VC to access the driver you need to configuer a System object in the portal...
Step 26: Again only fill in the following:
Driver Class name: com.nilostep.xlsql.jdbc.xlDriver
Connection URL: jdbc:nilostep:excel:/reports/spec/
Step 29,30 and 34,35: Usermaping Type can be left untouched
Additional step (do this after step 33): To make the system visible in VC you must set the portal permission for the user that use VC to Read + Enduser. Also when used in runtime later the enduser should have Read+ Enduser permission to use the system object. We used the built-in group Authenticated User for this and set the permissions on this group to Read+Enduser.
This should do the trick...
FAQ 1 - after uploading a new (or overwriting an existent) XLS file to the folder the changes are not visible, how to solve this?
ANSWER 1 -  restart the JDBC connector via /nwa > manage > applications > (search for jdbc) > Stop / Start
FAQ 2 - after deleting a XLS file the data is still querieable, even after the restart of the jdbc driver?
ANSWER 2 - this is some kind of caching bug, deleted files are only deleted when you restart the J2EE engine.
FAQ 3 - after a restart of the jdbc driver, the first query firred in VC returns an error.
ANSWER 3 - this is because the first time the XLS files are read and writen into a HSQLDB in memory database, this takes more time. after this the calls are made on this in-memory-copy of the XLS data.
Hope this helps you...
Cheers,
Benjamin Houttuin
Edited by: Benjamin L.F. Houttuin on May 26, 2011 8:04 PM

• Using excel file as datasource in crystal report asking database logon

hai all,
we uisng  plain excel file in crystal report to develop some reports it is working fine. Issue is when we are using  parameters and  using the crystal report in live office it  is asking for database logon details. we are not using any database as it plain excel file even without any odbc driver . please suugest what credential we have to give.
Thanks and regards.
suresh.p

Looks, your Live Office settings are set to "OnDemand".
Give BO logon credentials(Infoview) & try it out.
I'm Back

• Using Excel as  Datasource in Crystal Reports 8.5

I have never used Excel as a source for Crystal data and I am having a bit of an issue I believe. I have an Excel file on my desktop that I am using as the datasource. Eventually it will be out on a network drive. I set up all my reports as blank reports so I do that. When it brings up the Data Explorer pop up I choose ODBC ---> then Excel Files and choose the file. I then add the sheet to the report, close the data explorer window and start designing my report. I drag the fields I want on there, but when I go and preview I don't see any data at all. I have also tried it with the Report Wizard, no go there either.  Is there something special I need to get the data to show up on there? Does it need to be formatted a certain way? Is it just easier to convert it over to an Access database? Any help anyone could suggest would be wonderful!
Thanks
Jami Benson

I just checked something out and I figured out what I was doing wrong myself. It would seem that I was choosing the wrong sheet. One of the sheets, sheet 1, appears twice in the list. Once with the name of the whole spreadsheet, and once as just sheet 1. I was using the one with the name. It has the headings just no data. The other has the data and headings, just no name. Once I choose it, all seems to be well. '
Jami

• Need flexibility on using Excel as datasource

I found this tutorial: http://blogs.oracle.com/dataintegration/2010/03/connecting_to_microsoft_excel.html
Is it just me or there simply no flexibility if you need to predefine data area (named range) before hand? Most use cases you'd want to automate ETL, and thus data source must support varying number of entries (rows) at the very least.
Is there any work around for this?
TIA

For Excel this are the steps.
1. Create a DSN in ODBC
2. Create a connection in Data server (topology) using sun odbc-jdbc driver
3. Reverse the Excel using the selective reverse. While handling multiple sheets ODI defines them like a table (datastore) and names are populated based on sheet name say if sheet1 then Sheet1$,Sheet2$ and so on.
Now you can use them as Source Datasource and use it in the interface as we do with other RDBMS datastore.

• The connection string for coded UI Data driven test using excel data source is not working

Hello,
I am using the visual studio 2012 coded UI test, i added the following connection strings to connect to an excel data source:
[DataSource("System.Data.Odbc", "Dsn=Excel Files;Driver={Microsoft Excel Driver (*.xls)};dbq=C:\\Users\\shaza.said.ITWORX\\Desktop\\Automation\\On-track Automation Framework\\On-track_Automation\\Automation data file.xls;defaultdir=.;driverid=790;maxbuffersize=2048;pagetimeout=5;readonly=true",
"Sheet1$", DataAccessMethod.Sequential), TestMethod] [DataSource("System.Data.Odbc", "Dsn=Excel Files;dbq=|DataDirectory|\\Automation data file.xls;defaultdir=C:\\Users\\shaza.said.ITWORX\\Desktop\\Automation\\On-track Automation Framework\\On-track_Automation\\Automation data file.xls;driverid=1046;maxbuffersize=2048;pagetimeout=5", "Sheet1$", DataAccessMethod.Sequential), TestMethod]
But i get the following error:
Error details: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
Thanks,
Shaza

Hi shaza,
From the error message, I suggest you can refer the Adrian's suggestion to check the date source connection string correctly.
In addition, you can refer the following about how to Create a Data-Driven Coded UI Test to check your issue:
http://msdn.microsoft.com/en-us/library/ee624082.aspx
Or you can also try to ﻿use a Configuration File to Define a Data Source for coded UI test.
For example:
<?xml
version="1.0"
encoding="utf-8"
?>
<configuration>
<configSections>
<section
name="microsoft.visualstudio.testtools"
type="Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection,
Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</configSections>
<connectionStrings>
name="ExcelConn"
driverid=790; maxbuffersize=2048; pagetimeout=60;"
providerName="System.Data.Odbc"/>
name="ExcelConn1"
driverid=790;maxbuffersize=2048;pagetimeout=60"
providerName="System.Data.Odbc"/>
</connectionStrings>
<microsoft.visualstudio.testtools>
<dataSources>
connectionString="ExcelConn"
dataTableName="Addition$" dataAccessMethod="Sequential"/> <add name="ExcelDS_Multiply" connectionString="ExcelConn1" dataTableName="Multiply$"
dataAccessMethod="Sequential"/>
</dataSources>
</microsoft.visualstudio.testtools>
</configuration>
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

• Excel as a datasource

I have a Crystal report (currently it is Crystal 9 but we are migrating to XI R2) that uses an Excel file as the datasource.    It uses the Microsoft Jet OLEDB driver 4.0 and Excel 8 as the database type.   I am pointing to a shared drive (letter g) as the file location.   The user ID "Admin" appears with no password as default.
I uploaded this report to our Crystal Enterprise server when I try and preview it, the report keeps asking for a user ID and password.    Using Admin and no password does not work (or anything else I tried).   The "g" drive is mapped to the Enterprise server (just like my client computer) so it should be finding the file.   I also tried to remove the "Admin" password when specifying the datasource with the same results.
So, are there any "tricks" to getting Crystal Enterprise to work with Excel as a datasource?

Hi,
I think Crystal report server  uses a different user profile to get to the network shared location behind the scene. Can you try and move the Excel file the same Box where Crystal Server is and republish to the server and test.
Regards
Dotun.

• Use of DataSrc or DataSource

Dear All,
I am New to BPC.
What is the Use of "DataSrc" or "DataSource" and InterCompnay Dimension in BPC.
What is the Use of Insights & Custom Menus in BPC.
Regards,
Satish.

I would suggest attending a training course or opting for the RKT learning series to get more detailed information.  However, here is how I look at the components you are asking about.
DataSrc - Is a dimension that helps to segment information in an application.  For example, storing data to members to identify the values stored, such as Manual entry, Allocated data, Journal data, Script based or calculated data, etc.
Insight - Is a part of the application that when "turned on", is a predictive analytic component.  This process builds a duplicate application for presenting and evaluating data for a seperate reporting view, primarily a web based view that predicts where values are headed in the future, based on history and relationships/dependencies etc.
Custom Menus - Are a very powerful tool that may be used to create a process for users in an interface that is managed in the excel by an administrator.  The menus are the pre-cursor to the BPF's that are also available for consumption. The menu's don't have all the bells and whistles that BPF's have, but are very useful for building user interface links to reports, input schedules, dat apackages and are all built and managed and presented in excel.
Hope this helps.

• How-to use Excel for the XML file input?

Hello all,
Following our discussion with Gerhard Steinhuber on the very nice tutorial from Horst Schaude , "How to upload mass data via XML File Input" , I am starting this new discussion.
In the comments section of this previous cited tutorial, Rufat Gadirov explains how to use a generated XML from Eclipse instead of your XSD file as your source in Excel.
However, in spite of all the instructions, I am still facing the same issue in Excel when I try to save my file as XML : "The XML maps in this workbook are not exportable".
What I try to do is to create one or more Sales Orders with multiple Items in it from a XML File Input, using excel to enter data.
The part with the File input is working (if I directly upload my file to the webDAV, it creates a sales order instance with multiple items).
The only missing part is the Excel data input that I cannot make work. Any help on this matter would be greatly appreciated.
Here is my XML file that I try to use as a source in Excel before inputing data from Excel:
<?xml version="1.0" encoding="UTF-8"?>
<CreationDateTime>2015-03-02T12:00:00.000Z</CreationDateTime>
<List actionCode="01" listCompleteTransmissionIndicator="true" reconciliationPeriodCounterValue="0">
<MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
<MyName languageCode="EN">MyName</MyName>
<MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
<MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
<MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
<MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
<MyItem>
<MyItemID>token</MyItemID>
<MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
<MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
<MyProductTypeCode>token</MyProductTypeCode>
<MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
<MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
<MyNetAmount currencyCode="token">0.0</MyNetAmount>
</MyItem>
<MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
<MyName languageCode="EN">MyName</MyName>
<MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
<MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
<MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
<MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
<MyItem>
<MyItemID>token</MyItemID>
<MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
<MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
<MyProductTypeCode>token</MyProductTypeCode>
<MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
<MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
<MyNetAmount currencyCode="token">0.0</MyNetAmount>
</MyItem>
</List>
Thank you all for your attention.
Best regards.
Jacques-Antoine Ollier

Hello Jacques-Antoine,
I suppose that as you have tried to construct a map from the schema, you have taken the elements from the List level down. In this case I also can't export the map.
But if you take the elements from the level MySalesOrderUploaded down, you'll get the exportable map (screenshots)
Best regards,
Leonid Granatstein

• Using Excel 2010 with SharePoint 2013 Excel services

Hello:
What features are we missing when using Excel 2010 (rather than Excel 2013) with SharePoint 2013 Excel services?
Regards
Jeff Gorvits

Hi Jeff,
You might want to read the articles below:
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support

• Using Excel with Visual C++ 6.0 (need a graph control that behaves as much like the one in CVI as possible)

I hate to beat this to death but I was unable to find a
clear answer to this question.  Does NI provide Excel control from within
Visual C++ 6.0?
I read that NI supports the ANSI-C library only for Visual C++ 6.0 users:
Thread : "Re: Benifits of using measurment
studio for VC++ 6.0?"
NI REP : drohacek
Quote  : "we made the decision to support Visual
C++ 6.0 users only through the ANSI-C interface and not through the Measurement
Studio MFC-based class libraries."
If there is a suggested way of controlling Excel from within Measurement Studio
for Visual C++ 6.0 then I’d love to know it.
If not, can a plain statement be made basically stating that if you want
to control Excel you can’t use a Visual C++ 6.0 environment even with Measurement
Studio support?
With .NET of course you can just decide to have Excel support added during
project creation.  CVI can act as an ActiveX server and easily control
Excel just by building off the examples shipped with CVI.  I see that
there is support, using the Measurement Studio for Visual C++ 6.0 Project Wizard,
for taking existing CVI projects and converting them to Visual C++ 6.0 projects
or for calling CVI libraries from a .dll from within Visual C++ 6.0.  I suppose I could do the work
in CVI and then convert the project but I'm so deeply tied into all my MFC calls that I don't see
how I can cleanly include the CVI libraries into my existing VC++ 6.0 projects.
What I'm really after here is a visual graph control like the one in CVI that I
can use from Visual C++ 6.0.  I purchased a 3rd party graph control for use
in VC++ 6.0 that works well but isn't really visual.  I mean you can't
enter any values in it until you run the program and fill it out programmatically.
Then you can see which columns are two narrow, quit the program, adjust the
column width of your now empty control, and repeat, until you get the thing
looking the way you want.  If I could call into Excel from within Visual
C++ 6.0  the way I do from within .NET
then I could use Excel to hold the table and just read in the values into my table
control at run time.  Basically I'd use Excel as a visual development tool
for all my tables.
I do all my coding from within CVI and Measurement Studio for Visual C++
6.0.  I'd use CVI for everything if I didn't depend so heavily on certain
outside controlled C++ .dll's.  Could you please suggest then what I can
do to get Excel support for Visual C++ 6.0?
Last question :
Is there any plan to ever have a NI table control like the CVI table control for
use in Visual Studio?  One that you can
completely set up before you do any compiling?
I imagine that the way Microsoft sets up their environment makes this idea impossible.  Otherwise someone would
have come up with a truly “visual” table control before now.
Thanks,
Grant
Grant M. Johnson
Project Engineer
LECO Corporation

Hello Grant
You can most certainly use Excel with VC++ 6.0. Measurement Studio won't provided you with any classes to talk to Excel in VC++ 6.0. This is because Excel allows control via Automation and you can use its automation API to do anything you need with Excel. This is what CVI uses as well.
You can see this MSDN article on how to set this up. This mentions VC.NET, but it should work the same way.
Here is one that talks about VC 6.0 and Excel.
Even with .NET, you have to do thru the Excel Automation support. Excel started shipping with Primary Interop Assemblies (PIA) which are .NET wrappers about the Excel Automation object model. C++ Automation is definetely not as nice as .NET, BTW
I would not recommend using the CVI Excel libraries if all you want to use them for is Excel automation. You will end up creating un-necessary dependencies and go through extra layers that way. You can make calls straight to Excel from VC++ without requiring CVI.
One quick observation about your excel approach. If you decide to use Excel as your table, you might be requiring everyone who uses your application to have Excel installed on their machines. Just wanted to make sure this was acceptable to you.
Have you looked at the Datagrid Activex control, which is one of the common controls that ships with Visual Studio? You can add it to Visual Studio by right-clicking and picking it from the list of installed activex control. If you have not already, you should check it out.
Microsoft has made significant improvements in the number of controls they provide with .NET. They have a Datagrid control that seems to be what you need.
Measurement Studio did add some high level classes for Excel and Word Automation that simplify some common tasks, but these exists for VS 2003 C++ and VS 2005 C++, not for VC 6.0. Underneath, we end up using the same Excel automation classes, so you can easily setup something similar for VC 6.0. Plus you can find alot of references online on how to use the Excel Automation object model with C++.
We currently have no plans in Measurement Studio to create a table control unfortunately. I am assuming when you said graph, you actually meant table, since Measurement Studio already  provides a ActiveX graph controls for VC++ 6.0 that is very similar to the CVI graph.
On a side note, VC++ 6.0 is really really old. Have you considered upgrading?
To summarize
- Yes, you can use Excel with Vc++ 6.0 without mstudio.
- Try using the Datagrid Activex control if you just need a table.
- Measurement Studio provides high-level excel and word classes for VC++ 6.0
- Measurement Studio provides a graph control for VC++ 6.0 which is very similar to the CVI graph.
- Measuremnt Studio does not have a table control.
- VC++ 6.0 is really really old. Have you considered upgrading?
Bilal Durrani
NI

• How to use excel api in java?

I need to use excel api in Java to generate data in excel format. Can any one tell any of the use ful Excel api that we can down load from net? i have read about Apache's POi-hssf-Java api. But the jar i downloaaded from Apache site is not working ? Can anybody please send me the jar for taht Api ?

Hi,
In fact i was not clear about whcih jar file to download from the apache site. i found one folder structure like this
-parent
-bin
-src
All these folders contained some zip files. i took the zip files and extracted them. And i set teh class path also . But when i tried to import in java programs ,these jar files are giving compilation errors

• How to create different Graphs in SharePoint 2013 without using Excel service?

Hi All,
I want to create different graphs in SharePoint without using Excel Service.
I do not want to create excel and then upload that to SharePoint.
Any one knows how to do that? Isthere any option to do that?

Hi Darsh,
You can use
SharePoint chart webpart to display charts. Or you can use any jQuery charting library and feed data using JSOM or REST. Ex. high charts:
http://www.highcharts.com/products/highcharts
http://office.microsoft.com/en-us/sharepoint-server-help/sharepoint-lists-vi-exciting-ways-to-display-your-list-data-RZ102425636.aspx?section=3
Best Regards,
Brij K

• Retrieving sample basic using  Excel add in

Hi I am having problems accessing the sample basic database using excel, I see the sample basic in Application/Database and I get an error which states that "Unable to load database[Basic]". I get this error for all the the sample databases. The system administrator said the databases were installed with the essbase, but I still can't retrieve them. Anyone has any suggestions as to why this may be occurring.Thanks,

It's not a problem with the Add-In.The database was not Installed correctly. You need to rebuild the Sample Basic application. Can you check to see if all the DB files were installed.Look in the C:\essbase\app\Sample\Basic directory you should see these files, or atleast the outline.Basic.otlBasic.indBasic.esmBasic.tctEss000001.INDEss000001.PAGDo you know how to do this? If you want e-mail me and I'll walk you through it.Regards,Corey BidmeadClarity [email protected]

### Maybe you are looking for

• External file hosting for Show and Share

Hi, If I only use FTP server (no external streaming server) for external file hosting, can show and share still play the video? Is there any other limitation beside video editing with this scenario? Thanks.

• IWeb wont post my site

I finished my website and try and publish it, and starts uploading then part way through it says error and stops uploading...is it because i am on dial up????

• When trying to download, I get an error saying" a problem has caused Firefox to close", and dl fails.

I am running windows 8, and have Avast! for antivirus. I am running FF ver26, and is up to date. This problem just started about 2 weeks ago.

• SAPBEXEmbedQuery

Hi, Can anyone tell me how to keep a query from executing when I load it into my workbook via SAPBEXEmbedQuery in the BEX API toolset?  I want to set some variable values after I load the query and then have it execute.  Right now it still prompts me

• Flash and ie 6

Please anyone there, i need some help. I've made a website in DWMX2004, but my work in flash appear with a grey square around in IE6 when you pass the mouse over it, but in FireFox doesn´t. Both have Flash Player 8 installed and the flash work were m