The R library dbplyr allows access to large data files using excel.
I have excel files that are large enough to be problematic and I would like to selectively pull in contents using SQL using dbplyr.
How do I connect to, and access the Excel xlsx file using the dbplyr interface?
Related
Is it possible to import/transfer .ods files to Microsoft Access?
Duo to the documentation the method
expression.TransferSpreadsheet (TransferType, SpreadsheetType, TableName, FileName, HasFieldNames, Range, UseOA)
has the parameter SpreadsheetType. There are only Excel Versions listed. Seems there is no support for .ods? Has someone knowledge about how to handle .ods to MS Access?
There's no support for .ods files in Microsoft Access.
Usually, you can import unsupported file types using an ODBC driver, but there doesn't seem to be an ODBC driver that supports .ods files either (in contrast to Excel files, text files, etc. which can be imported via ODBC).
You can, of course, use Excel via OLE automation to convert the file to an appropriate format before importing or after exporting.
Even there is no direct support, if you know .ods files are ZIP-compressed and XML-based you can unzip the file and import the XML-Data.
I manage to create many excel files by extracting the relevant data from MySQL tables and populating these data into Excel using Xlsxwriter. The number of created Excel files may exceed 100s at the point of data generation, and I need each excel file to be converted into PDF before I email out the files.
Manually converting each Excel file takes a few minutes, but just imagine doing for hundreds of files. I want to avoid using com32 or comtypes, and just through Xlsxwriter or VBA to get the conversion done. I have written some codes for Xlsxwriter, but somehow, this didn't work. Can someone advise, please. Thanks.
VBA_worksheet=current_workbook.add_worksheet()
current_workbook.add_vba_project('printPDF')
VBA_worksheet.write_formula('A1', 'ThisWorkbook.ExportAsFixedFormat Type:=xlTypePDF')
VBA_worksheet.activate()
VBA_worksheet.hide()
The code you supplied looks like you are trying to execute a VBA macro from XlsxWriter. If so that won't work.
It is possible to add VBA macros and functions to XlsxWriter files but only Excel can execute them.
In order to convert the xlsx files to PDF you will have to automate Excel or perhaps find some third party app that can do it.
I need to generate XLS file using TSQL only. I am generating XML based Excel.
I am trying to use FOR XML for this but as the output XLS file is fairly complex its taking much efforts and time.
Is there any other way to do it?
Or if its only way what's that can i do to do it effectively ?
It is not about exporting the data. I will respond to the user in XML format and that XML format will be opened by Excel(I will include headers that Excel know and will open the result in Excel.) User or I will not have direct access to SQL server so no way to export the results.The query will be exposed as Web-service. User will request the data and application will respond with XML that will be opened in Excel.
I am making a small application that will read .csv files into a newly generated access table (generated with vb.net), I am filling this database with sql and now I would like to output that table as a .dbf file!
I can't find any info on this subject.
I know some of you will tell me to just make the script in vba in access, but there are some functions that require me to use vb.net and the client wants a single .exe file.
There is a forum post here that includes some VB.NET sample code to create a .dbf file and write some data into it. The code uses the Visual FoxPro OLEDB driver (VFPOLEDB) which is no longer distributed with Windows by default, but can be downloaded here.
I have one excel file which contains data,I have to import the data in excel file using the ms access form UI.I need to create form which takes input as excel file and inserts the records in the MS access table. I need to place some logic using VB before inserting the data to MS access.
Kindly guide me how I can achieve it as I am naive in this technology.
Use the MS Access external data wizards to link the Excel file and then proceed as if the linked table was native to MS Access.
You can also use in VBA DoCmd.TransferSpreadsheet Method to link or import Excel.