How to access ActiveX Checkbox in Excel 2007 using OpenXML - activex

I have found many pages where it has been explained how to get Checkboxes in Word 2007. But could anyone explain how to fetch/access the ActiveX checkboxes in Excel 2007 using OpenXML? I tried generating the code for such an Excel file using the OpenXML sdk Tool and found out that the Checkbox is of a "Control()" type. But while reading the sheet in C# using OpenXml i am unable to access it.
Thanks.

Related

How to add a print functionality to Office Add-in?

I am building an Excel Add-in with the Office JS API. Is there a way to handle printing with the Add-in or open a printing window?
I have been going through the documentation but can't find any methods for this. Am I missing something?
Edit: To be more specific, I want to open the Excel print dialog with the Add-in.
There is no API in Office.js to invoke the Excel print dialog. If you know that all the users of your add-in will be working on Windows machines, using desktop Excel, you might look into whether a VSTO/VBA add-in has this feature. But if some users will be using Excel on the web or Excel on Mac, you'll have to stick to an Office.js add-in. In the later case, the best you can do is have your add-in prompt and/or instruct users to print from the Excel UI. You can have some control over the layout of the worksheet when it prints. See Work with worksheets - Page layout and print settings for more information.
You can suggest that Office add-ins be given access to the print UI at Microsoft 365 Developer Platform Ideas, but I suspect that security concerns would make it unlikely that Office.js-based add-ins, which are web applications, would be given that feature. The JavaScript/HTML that is hosted by a web application can be changed by its creator after the add-in has been installed by a user and/or approved by an administrator. This makes it possible for a rogue add-in creator to change the behavior of the add-in post-installation.

Delphi 2007: IDE Model View: Generate Documentation missing?

In my Delphi 2007 IDE I've activated Model Support.
In the Model View, I can see all my classes and open an UML diagram for those classes.
But how can I generate documentation?
There is no Generate Documentation in the Tools dialog, and also none when I right-click items in the Model View.
What am I missing?
Generate Documentation is part of Delphi 2007 Enterprise. The Professional edition is lacking this feature.

Which type library should I import to use Microsoft Open XML?

I'd like to start using Microsoft Open XML API with Delphi 2009 to create MS Excel documents. I downloaded and installed Microsoft Open XML but how to proceed further? I thought I can import type library after the installation but I can't find the library on the list. Which one should I import?
I was try to use it but it is for .net only (there is no exported COM info/com implementation)

Using Microsoft Office Interop to create and parse Excel spreadsheets from ASP.NET

I have a new ASP.NET MVC project that has two requirements that require using the Office Interop DLLs to generate Excel spreadsheet files in Excel 2003 format by combining several template files into a multi-sheet workbook and to parse these files once filled in. The files we parse may come back in Excel 2003, 2007 or 2010 format (I believe 2007 and 2010 file formats are identical but feel free to correct me on that).
I'd be much happier if we could convince the (internal) clients to drop this requirement. They have been made aware of the risks in this type of work and still want to go ahead so now I'm looking for good references to help get us started and have had some trouble narrowing down the correct keywords to search for.
Thanks.
Using Excel interop on the server is a reallyy bad idea. http://support.microsoft.com/kb/257757
Alternatives are:
Open source
Excel 2003
ExcelLibrary http://code.google.com/p/excellibrary/downloads/list
Note from another commenter:
ExcelLibrary has been superseded by the exceptional EPPlus - epplus.codeplex.com. Jan updates it regularly. Have been using it and it is one of the finest open source projects we've worked with. – Mark A Nov 4 '10 at 0:11
NPOI http://npoi.codeplex.com/
Excel 2007
ExcelPackage http://excelpackage.codeplex.com/
Commercial
Aspose Cells http://www.aspose.com/categories/.net-components/aspose.cells-for-.net/default.aspx

Converting RDL report to RDLC for use in MVC

I have an existing RDL report that I want to convert to an RDLC report for use in an MVC application.
According the the MSDN Site the way to convert it is to rename the .rdl file to .rdlc, include it in the project and then use a ReportViewer control to select the datasource.
Being MVC I don't have a ReportViewer control on my page, I was using this post to help me render the report into the Response stream.
I've renamed the rdl to rdlc and included it in my project but I get the following error when trying to open it:
The report definition is not valid.
Details: The report definition has an
invalid target namespace
'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'
which cannot be upgraded.
Any ideas how I can convert the rdl to rdlc without having to re-write it?
You cannot convert a SQL Server 2008 Reporting Services report .RDL into .RDLC - Microsoft only knows why.....
See Bill Vaughn's Retraction: The ReportViewer Control does NOT support SQL Server 2008 RDL in Local Mode for some expert insight.
In short: right now, Microsoft doesn't have a working story for converting RDL to RDLC in Reporting Services 2008.
To correct the earlier answer: you cannot render an SSRS 2008 RDL file with the VS 2005 or VS 2008 ReportViewer control in local mode, because the schema has changed in SSRS 2008, but the control was not brought up to par. VS 2010 comes with a ReportViewer control that apparently supports the SSRS 2008 schema.
If the schema were supported, no conversion would be necessary (other than renaming the file from RDL to RDLC, which is how it worked in a VS 2005 environment).
See my question on MSDN about this issue.
Actually, you can convert an .RDL to .RDLC. Copy the report to your report folder on your project, rename the extension from .RDL to RDLC. Just make sure you have the Microsoft.ReportViewer.Webforms reference. I have created a ton of reports, using the Report builder, built and tested them there, then copied them to my project (MVC). Just my 2 cents.

Resources