Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: CR 2011 Connection to 2010 Excel Post Reply Post New Topic
Page  of 2 Next >>
Author Message
vcs1161
Newbie
Newbie


Joined: 03 Mar 2010
Online Status: Offline
Posts: 33
Quote vcs1161 Replybullet Topic: CR 2011 Connection to 2010 Excel
    Posted: 23 Aug 2012 at 10:19am

In the Crystal 2008 version I was able to connect to an Excel spreadsheet through DAO and I now see I can't do that in the 2011.  Is there an updated driver I need to have to make this work?  Has anyone else come across or used this connection before?  I have existing reports that are set up this way and now need to connect to the new .xlsx files. 

IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 23 Aug 2012 at 10:38am
I know that you can export to Excel 2007-2010, but I have not heard if you can use Excel 2007-2010 as a data source.   Maybe through an ODBC connection.
IP IP Logged
vcs1161
Newbie
Newbie


Joined: 03 Mar 2010
Online Status: Offline
Posts: 33
Quote vcs1161 Replybullet Posted: 23 Aug 2012 at 10:50am
I have been doing it that way for quite some time with earlier .xls file types through DAO with no problems.  So how do I set up a ODBC connection?  I tried it and it is requiring a user name and password.  There's no way to bypass something like that?  Does that have to be set up through an administrator?
IP IP Logged
vcs1161
Newbie
Newbie


Joined: 03 Mar 2010
Online Status: Offline
Posts: 33
Quote vcs1161 Replybullet Posted: 23 Aug 2012 at 10:59am
I just tried it now and connect to an Access database just fine like I have before. 
 
The latest version I get for Excel to connect this way is Excel 8.0 from my list of choices which lets me connect to earlier excel versions but not the new .xlsx version. 
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 23 Aug 2012 at 11:02am
I remember seeing a posting on some forum about not being able to use Excel 2007-2010 as a data source.  But I do not know if they ever found a workaround.  Wish I knew more about it.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 23 Aug 2012 at 11:24am
I just created an ODBC connection to an Excel 2010 spreadsheet (I had to choose the correct driver from the list, Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb). It appears to work okay.  Of course if you cannot use an ODBC driver, then I do not have any other suggestions.
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 24 Aug 2012 at 12:02am
The only way to connect to xlsx is though ODBC using the Excel driver.
CR 2011 even though supports exporting to xlsx does not allow a direct connection as a source.
 
If you do not have permission to ODBC then this is an issue. Does it have to be a xlsx file? can it be xls or csv?
 
 
IP IP Logged
vcs1161
Newbie
Newbie


Joined: 03 Mar 2010
Online Status: Offline
Posts: 33
Quote vcs1161 Replybullet Posted: 24 Aug 2012 at 2:54am
It's xlsx because the number of rows in it exceeds what xls would accept and users still use it and refer to it. The reason why I am trying to connect to it like I easily can to .xls is to create Crystal reports from it and automate them through a Business Objects environment. 
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 24 Aug 2012 at 3:09am
Ok I have just had a look for you, see how this goes...
 
Create a new connection
Select OLE DB (ADO)
Select the Microsoft Office 12.0 Access Database Engine... Provider
Change the Office Database type to Excel
Select the data source.
Leave userId Password etc as is.
 
That should work, I have not used in the past, but did a quick test and seems to be working of for me.
IP IP Logged
vcs1161
Newbie
Newbie


Joined: 03 Mar 2010
Online Status: Offline
Posts: 33
Quote vcs1161 Replybullet Posted: 24 Aug 2012 at 3:26am
I can create a report from the csv so I may need to come up with a procedure to copy this as a csv each month that this file is updated.  And yet the end users will still use the .xlsx file.
IP IP Logged
Page  of 2 Next >>
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.018 seconds.