SSRS Question: What will happen if a client machine does not have MS Office installed on it and a SSRS report's "Export to EXCEL/WORD" functionality produces on excel report? One possibility is the file will get saved on client machine but one can not open it in excel format. What is the solution to overcome this issue? Can we do something from server side?
You are correct - the report will export to Excel or Word, and the client would then be unable to open the file. If you want to open an Excel file, you will need something that can read the file format. Open source office solutions could work, as could Microsoft's Office Viewer applications, or even a converter tool that converts the file to another format.
Alternatively, could you just export to a format that IS accessible on the client machine? CSV, tab delimited, HTML, etc?
Related
I'm trying to open the following XLS file in SSIS:
https://drive.google.com/file/d/1E_fNSlRTMuoYnH7VERFB8hXbcxssKSGr/view?usp=sharing
I can open it in Excel, without any error or warning from Excel.
But When I try to open it in SSIS or even In PowerBi, I get the following message: "External table is not in the expected format". If I open it in Excel and then Save again in the same XLS format, I can open it in SSIS.
I've installed the following OLE DB Drivers:
AccessDatabaseEngine_X64 (x64)
AccessDatabaseEngine (x86)
And I've tried with the following providers:
Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties=Excel 12.0;
Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties=Excel 8.0;
Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=Excel 8.0;
Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=Excel 5.0;
Any idea about why the file is not opening in SSIS?
I don't want to be opening every file, every day, because there are many files every day that I need to load.
I'm using Visual Studio 2019 with projet compatibility for SSIS 2017.
Thanks!
The first issue that the excel reader is going to have is the image sitting there throws the tooling off. As soon as I deleted the image and saved it, the tooling started to work.
The next problem you're going to run into is that you need to skip the first N rows before your data begins. Since there's no functionality in the JET driver to do that, you're going to need to do some magic to work with the data set.
Google the terms Excel, IMEX and registry keys and you'll get into the voodoo of Excel type inference (based on the first 8 rows) and it's ugly.
At this point in my career, I either push back and ask for a cleaner extract of data from the provider. Otherwise, I increase the estimate and write a custom Script Component Source that uses the JET/ACE drivers to extract the data and then shape and type the data into my data flow.
Presently I am using as3xls.swc to export datagrid to excel which is giving me only to save as .xls format which is opening in microsoft excel 2010 which is OK for me, but it is only opening in protected mode where I am unable to do any edits or save it. So, can anybody know any other way to save as .xlsx format in the client side itself?
Protected mode is a feature of Excel within the Microsoft operating system. They're trying to keep you from inadvertently downloading viruses. You can defeat these measures by modifying the Excel trust store. It has nothing to do with your code, and you don't need to use older versions of Excel.
I find it easiest to add a trusted location (like your desktop).
http://office.microsoft.com/en-us/excel-help/what-is-protected-view-HA010355931.aspx
You can export to Excel2007 - its just an xml file format. WE have some details on our blog: http://blog.flexicious.com/post/Flexicious-30-Release-Grid-Edition.aspx. Keep in mind however, it generates an XML file, which when you double click on, will correctly open up excel (Assuming you have excel 2007 or the reader installed).
I am using MS Access 2003 and have seven different reports I have to distribute each morning, and I currently do that manually by printing each to an XPS file. The default printer for each report has been set to XPS file, and I tried this code:
DoCmd.OpenReport ("rptDaily_1of7")
DoCmd.PrintOut acPrintAll,1,,acHigh,1
When I use that, it does open a Save As box, but .tif is the only option in the "Save As type" field. Even if it wasn't though, ideally I'd like to send the file path and name as a parameter and have it handle the entire process (so I can use a loop to generate all seven files with the push of a button). I'm hoping there's another command I can use to do this, or possibly another method. Note that it's not my machine, and I do not have admin rights to install anything else (like a pdf generator, etc.).
You can create your reports as PDF files using ReportToPDF by Stephen Lebans.
This can be easily automated (there is a MDB with example code in the download) and you don't have to install anything.
It comes with two DLLs which you need to put into the same folder as your MDB/MDE, and that's it. No installation / DLL registering, just distribute the two DLLs with your MDB/MDE.
We are using this at work to print thousands of reports per day from Access 2003.
The Official Cohort Default Rates for Schools site has a link on the left to “Download Entire List.” That downloads an Access database file (.accdb). I'd like to have it in CSV (.csv) format.
This answer provides a Windows solution to import Access to MySQL, but ideally, I'd like to have a Unix command-line program, e.g., accdb2csv input.accdb output.csv. Is there anything like that? If not, how do I code that?
Here are some other links I've found:
http://jackcess.sourceforge.net/
https://github.com/akaihola/mdb2django
https://github.com/karlbennett/export-accessdb/blob/5b492778439c85f15d5c859a27094514f7aba8ee/src/main/java/org/youthnet/export/Smasher.java
https://github.com/Tomvb62/DBConvert/blob/dc67a3d835a9708320d29b8040ddc5cde7e7fa39/src/dbengine/export/MSAccess.java
I just released an access2csv program based on Jackess. Code is at https://github.com/AccelerationNet/access2csv, a binary is available at https://github.com/AccelerationNet/access2csv/releases.
so right click rename the file from Aaron.accdb to Aaron.zip and then right click unzip it. Office 2007 / 2010 formats are effectively zipped XML files.
This will give you a bunch of XML that you can easily parse using Excel, or XSL, etc.
i want to save/open a file in txt format other then CSV in SSRS 2005. So any one who knows how to add file extension in url that can overirde default extension in SSRS 2005..
I think you mean you want to export a report to a text file, but not CSV format? You haven't specified what other format you want, but if you want to output to a text file with a different kind of delimiter (for example Tab or | ) then you can do that by rendering the report via URL Access and overriding some of the rendering extension parameters.
For example, to export to a TAB delimited file with the extension .TXT:
http://SERVERNAME/reportserver/?%2fReportFolder%2fMyReport&rs:Format=CSV&rc:FieldDelimiter=%09&rc:Extension=TXT
As far as I can tell SSRS 2005 does not support setting these values in rsreportserver.config unfortunately. However SSRS 2008 does, which means in 2008 you can create a new rendering extension based on CSV and specify these settings. Users can then select the render format from the Export list in Report Manager, however as I mentioned 2005 does not support this so I think URL Access is your only option.
CSV Device Info settings for SSRS 2005
Report Server URL Access for SSRS 2005