I am writing a report and one of the sources resides in a Google docs spreadsheet. Is it possible to use that spreadsheet as a datasource in SSRS?
Is this doc spreadsheet Excel file? If so , you can use ODBC driver and use the Excel file as data source. See:
http://hussain-msbi.blogspot.com/2012/07/create-ssrs-report-using-excel-data.html
Otherwise you have to custom a data process extension so that SSRS can read the data.
Unfortunately it is not possible to use a google docs spreadsheet as a direct datasource for SSRS. You would need to make use of an API to download your data locally into a flat file format (such as csv). From there you can access the flat file as an SSRS datasource
Related
I am working on a script that is standalone. It collects its baseline data from a google sheet bound to a form. In the form submission, excel documents are uploaded. While I can access the link for the excel document(google downloads the excel into your drive upon submission and inserts the drive link into the google response sheet), I am having difficulty looking into and extracting anything (exact cell values, ranges, indexes, etc) from the excel doc.
I have tried using various functions from the sheets and spreadsheets classes and continue to get errors. Some suggestions I've found say the excel document needs to be converted into a google sheet before the app script can access it, or that app script won't allow you to work with such a document if it is not bound to your script (since that allows you to activate it)(I can't bind the excel doc because it changes upon every new submission of the form).
Has anyone ever compiled a similar code and figured out how to access an unbound, non-google doc?
Let me know if you need error codes or script snippets. I just wasn't sure if this was a syntax problem or a google suite trick spot that needed extra code that I probably haven't found cause I'm new to this platform.
From the question
Has anyone ever compiled a similar code and figured out how to access an unbound, non-google doc?
Scripts in Google Apps Script aren't "compiled" by the script writer in the sense that it's done when developing something in other platforms.
To get data from a file hosted in Google Drive, first the script should get that file by using the Drive Service (Class DriveApp) or the Drive Advanced Service.
The next part depends pretty much on the Excel file format. If it's an xlsx file, then usually the most convenient is to convert the file into an Google spreadsheet as this will make possible to use the Spreadsheet Service (Class SpreadsheetApp) to read the data from it.
If you don't want to convert it to a Google spreadsheet file, or it can't be converted the the "basic" means because it's using an incompatible format (like a xls file format), then you will need to use an library or an external service to parse the Excel file content.
function getalldataonsheet() {
const ss=SpreadsheetApp.openById('ssid');//you provide id
const sh=ss.getSheetByName('sheetname');//you provide sheet namme
const rg=sh.getDataRange();
const vs=rg.getValues();//2d array
return vs;//this return 2d array
}
There are restrictions for passing parameters in client to server communication
We are using data driven subscription for reports. Reports with PDF as attachment is working, but reports with Excel as attachment is not working.
Use EXCELOPENXML as the render format for Excel. This works for me with Data Driven subscriptions.
https://learn.microsoft.com/en-us/sql/reporting-services/report-builder/exporting-to-microsoft-excel-report-builder-and-ssrs?view=sql-server-ver15
The EXCELOPENXML extension defines the Excel renderer for current (.xlsx) Excel files. The EXCEL extension defines the Excel 2003 version. Visible = "false" indicates the Excel 2003 renderer is hidden.
how can I open a excel file directly with google sheets api
Not to my knowledge, however, using the Drive API you can upload and convert an Excel file to Sheets format automatically. This could then be used by the Sheets API. This may or may not work as a substitute in your use case.
Well you can read a .xlsx file as a binary blob from Google Apps Script API. So if you want to read the xlsx formatted file and do all the work of interpreting it yourself, then sure you can. But that's essentially writing the entire MS Excel interpreter in Google Script.
Once you export all of the data you need from MySQL into an Excel spreadsheet using PHP Excel, is it possible to call an existing Excel macro to apply formats to the data? If so could you provide an example, please?
I have data in access in the form of a table. I need to export it to excel in the form of an excel sheet where i should even be able to make updates to the data if necessary. I have to do this using VBA. And also one more thing the data I have in access is which i have generated using SQL
Why do this with VBA? There are multiple simple ways to do this from the normal interface options.
And what do you mean by, "the data I have in access is which i have generated using SQL"?
Modules: Sample Excel Automation - cell by cell which is slow
Modules: Transferring Records to Excel with Automation