Formatting Excel Document in Qt - excel

I am using Qt 4.5 and Windows XP. I need to create an Microsoft Excel Document that has data (some labels and values) from the Qt application. I need to format those data with some fonts,bold,italics,color, background color etc., Besides ordinary data, there will be Picture files (JPG) also. I need to add those into the Excel. I know retrieving values from Excel using QAxWidget, QAxObject. But I don't have a clue about the formatting options that can be applied to cells through Qt and adding images as well?? Any help regarding this are welcome.

There are a few options:
Use a cross platform library
xlslib is one such library
Use the Excel Object model directly If your program will run on a
machine that has office installed
you can use COM or ActiveX to tie into the
Excel object model to create the
workbooks. Excel has a rich and
complete object that will let you do
most operations.
Write to an intermediate database Write the QT
data to some type of database and
pull the data using Excel. This
route requires in depth Excel
knowledge and a database.
Write out an XML format that Excel can understand
Excel 2003 can understand
SpreadsheetML. Simple formatting
should be straight forward to construct an XML
document for. http://msdn.microsoft.com/en-us/library/bb226687(office.11).aspx
Excel 2007 can
understand OpenXML. I have not worked
with it, but I understand it is more
complicated (i.e. more feature rich) http://msdn.microsoft.com/en-us/library/aa338205.aspx

Related

Visio automatic container from lines

I'm using Visio Professional 2016. Is it possible to automatically create containers depending on a column (for example the project name) from external Excel data?
I found this but I'm not sure if this is want I'm looking for. Besides that it's not easy to follow.
Another question, where can I find settings similar to the properties mapper in yEd? I'd like to create shapes automatically from Excel data. If a new row is added in my external data it is supposed to create a new shape on its own.
Edit: Will this using VBA answer all my questions?

Excel web part for Sharepoint not displaying text boxes

I'm exposing an Excel 2013 worksheet in a Sharepoint 2010 page, using a Web Part.
For some reason,
Sharepoint doesn't show floating objects, like text boxes or shapes, that are in my Excel sheet.
I've got several graphs and cells filled with text, which I've collected under a single Named Item that selects the entire relevant sheet area.
These display fine, but text boxes won't , whether they're on top of another chart or on blank cells.
I've also tried simply exposing the whole worksheet without using named items at all, and the problem persists.
Text boxes are a form of OfficeArt and these features are not supported with excel web services.
From MSDN - Excel Services Supported and Unsupported Features
Features that Previously Prevented Excel Files from Loading
In Office SharePoint Server 2007, Excel workbooks that contain unsupported features like VBA macros, form controls, and so on are not loaded in Excel Services.
In SharePoint Server 2010, to help users work with this limitation, Excel Services ignores certain unsupported features. In other words, rather than blocking the entire file from loading Excel Services loads the file but you do not see the features that Excel Services does not support.
Following are features that do not prevent Excel Services from loading a file:
Cell comments.
Formula references to external books.
Query tables (also known as external data ranges).
Microsoft Visual Basic for Applications (VBA).
Any OfficeArt technology. For example, Shapes, WordArt, SmartArt, organization chart, diagrams, signature lines, ink annotations, and so on.
Note that these features continue to be unsupported. This means that they do not render, execute, or work in any way as they do on the client. Most of the features in the list do not render in Excel Services.
This was a LONG time ago, but I wanted to share a "potential" solution that I used that worked well
I'm in Excel 2016, and Sharepoint 2013
I created the shape I wanted and got it exactly the way I wanted it.
I selected the Shape, right-click, Cut
Right-click Paste AS PICTURE
Save the file.
Refre

SSRS Excel Protecting WorkBooks

I am using SSRS 2008 R2.
I want to generate a protected excel workbook so report users can reference it but cannot accidentally change it.
ALternatively I would accept being able to protect individual columns.
Is there a way to do this?
As far as I know, this is not possible with SSRS 2008 R2. A quick search results in a msdn thread corroborating this.
Alternatives I can think of, some of which a bit "heavy" though:
Use SSIS to fill an existing XLS file that has protection.
Export to XML, followed by custom post-processing using XSLT to transform to Office2007 format.
Write a custom rendering extension to do your own Excel-rendering.

How to get Excel to interact with .NET or PowerShell or OData

I have a few thousand rows of history data that I want Excel to access. This data will be used in creating a summary report, sparklines, and a table data.
My question is how should I go about adding new rows to the datasource? Powershell is required to extract data from the source (Exchange Server)... but then how do I surface that extracted data to Excel2010?
Here are my ideas:
1) Powershell can run externally and save the data to the XLSX (as long as the spreadsheet is closed) using Open XML libraries
2) Use Excel vb macros to call COM via interop (C# object) to get the data from Powershell. The returned values go to the XLSX (Ugly)
3) ????
(Advanced, not sure if this idea will work with above mentioned features)
If I were to move these rows to an external sheet, or SQL table, then I'd rather use other ways of importing the data into excel. I dont' know if this will work with sparklines, or tables. Perhaps I could use OData since it appears to be the most lightweight and firewall friendly.
If you have the external data in SQL Server, Access or another Excel file, it's trivial to access it using Data>Connections. The data will automatically be formatted as an Excel table with all of Excel's features available.

Language/framework to write Excel spreadsheets, webbased

I need to make a webpage (from scratch) that will interrogate a SQLite database (with a predetermined query) to produce an Excel compatible spreadsheet. I need to find a lightweight solution to implement this, but don't know where to look and what is recommended.
The page itself will be fairly vanilla, only takes two dates as input, and the query will be pretty much a single table dump between those two dates. I'm interested in how to port the data to a spreadsheet.
EDIT: Framework should have some sort of stock SQLite package.
P.S.: Can be for use with Excel 2007 (XLSX) or older. Which ever way it goes, the page will be set to one or the other, not both.
Maybe PHP and PHPExcel will suite your needs.

Resources