I would like to convert data from infopath form to excel spreadsheet through code.
I know you can export the data using the feature in infopath, but I am interested in doing this through code (like a part of a workflow).
Can anybody suggest a way for doing this or a possible starting point?
Thanks.
You can convert the xml data from the form to excel format.
Check this-XMl to Excel
Or, if you're looking for something more advanced, check out http://openxmldeveloper.org/
Related
I want to pass the current document (excel file) opened to API.
I tried finding on ways to do it but I found out this which is only for word and power point and this which is for reading specific data from excel. Any idea on how can I achieve that?
I am new at this and not sure where to look.
Thanks for the help in advance.
I have a list on Sharepoint,and I would like to update that list from any excel sheet/file I create "Having same formatting of course". Can I achieve that? I know that you can create a List on sharepoint from an excel sheet "Table Format" but I couldn't find any solution to sync sharepoint list from any excel sheet. Shall I do some scripting to achieve that ? I'm using Excel 2010 and Sharepoint 2010
Do you need to actually do any further interactions with the SharePoint list?
If not, a solution could be to just display the excel sheeet as a Range within a page. https://msdn.microsoft.com/en-us/library/office/ee556820.aspx
Don't think you get my point. Suggesting that you do not use a list at all. Just display the excel sheet directly.
If you do need to update a list from excel, you must use scripting of some kind. Question is if you can call the script from within excel, or it must happen when uploading the excel sheet.
Perhaps if you tell the complete scenario, it is easier to help.
Since I need further interaction with the list, I have decided to go with Access, which provides an out of the box solution. Simply create a blank database and link it with the desired list on SharePoint and that would be it.
I have a simple excel file containing rows and columns. One of the column contains rows of data which is string like this (XML data)
<Employee Name="R1" Designation="Developer">
<SkillSet Language="C#"/>
</Employee>
<Employee Name="E2" Designation="Developer">
<SkillSet Language="Java"/>
</Employee>
I would like to read this information in the excel file, parse it based on particular skillset and put them in the same excel workbook in adjacent column. I may need to provide a button click which may trigger the action.
How do I approach this problem.
Should I write a macro or should I write an excel addin. The excel can be either 2003 or earlier/2007/2010.
I can think of writing a user defined function to read the cell data but, how do I read through the columns in vb and also how do I re-use my function across different excel-workbooks.
Although this maybe coming to you at a late hour, however I had thesame problem as you mention. I'm also kind of new to VBA. My client wanted a database application in Access 2003. But after some persuation, I was able to convince them to adapt Access 2007. Which by the way, it's still not reliable, to develop a multi-lingual application.
Anyway to cut the story short, I was able to achieve same, after some google search and using the code I found here;
http://www.freevbcode.com/ShowCode.asp?ID=2922
and here
Parsing XML in VBA
Hope you find this links helpful cheers.
Add a reference (Tools-->References) to an XML parser, e.g., Microsoft XML, v6.0 -- my MS Access 2010 installation has a seven XML parsers provided by Microsoft. Declare an instance of the parser and use its properties and methods as you need.
I have been searching for the logic to convert the SpreadSheet data of an excel into XML format.
I have the thousands of data like shown below. i want to convert this into XML format.
Anyone please help me, any help would be appreciated greatly.
According to the screenshot, your Excel version allows to save your document using XML Spreadsheet 2003 format: Save As... > Other Formats and locate it in the dropdown (at least for Excel 2007 it works as described).
Resulting XML will contain much of the native Excel Workbook fields and nodes, but they're might be easily removed using any more or less advanced XML editor, e.g. Altova XMLSpy or any similar. However, cleanup depends entirely on your further needs.
For your convenience may see sample Excel book and XML generated from it as described above: https://www.dropbox.com/s/kxmxu2tq52y4m9b/ExcelToXML.zip
Good luck!
is there a workaround to use the cfdocument tag to save a page/file as an excel sheet instead of a PDF file?
I already have a process set up to make pdf files and email them out and would like to give my customers the option of getting an excel file instead. It would be nice if I could reuse the code I already have instead of having to rewrite it in POI or something like that.
The type of data witihn a PDF is not usually the same type of data that makes sense for Excel. That being said, there are multiple other ways to create Excel spreadhseets.
In ColdFusion 9, it's native. Just use the cfspreadsheet. In CF8... well, it looks like you have POI. So use that. ;) Ben Nadel also has a nice wrapper for POI so you can consider that too.
The thing is - you will not be able to go from CFDOCUMENT to a spreadsheet since it is really a different type of data.
In ColdFusion 9 use the cfspreadsheet tag and/or spreadsheet functions. That creates a real Excel file.
In ColdFusion 8 and below the easiest way is to use the html table > Excel hack/trick. Put your data in a standard html table, save them in a file with a .xls extension and email them to your users. When the user opens the file Excel will convert the html table to an Excel spreadsheet. You could also send the content to the browser by adding at the top of the page. With this method make sure that you are only sending an html table for best results.