How to print a file opened inside VisioViewer activeX control using VS2005 - visio

I am creating Microsoft Office Visio Viewer ActiveX control inside my View class (I am using SDI model), I have done this using an ActiveX class wrapper created by class wizard.
I am able to open a vsd file, but when I click on Print menu item, it prints a blank page.
The Visio Viewer ActiveX doesnt have any print function exposed as per the documentation, but it does mention that:-
Microsoft Visio Viewer is an ActiveX control that lets you open, view,
or print Visio drawings, even if you do not have Microsoft Visio 2010.
How do I print the activeX control content from "Print" command.

Was able to print the document by referring to this and using the
PrintControlUsingScreen()

Related

How to Add Custom Option in MS Word File Menu by Office Addin using manifest.xml

How can we add a custom option in "File Menu/Tab" by custom "Office Addin"?
I can find how to add "Control" in an office tab using "ExtensionPoint". But I am unable to find how can we add a custom option in "File Menu". Following are the documentation links I have gone through.
https://learn.microsoft.com/en-us/office/dev/add-ins/reference/manifest/extensionpoint
https://learn.microsoft.com/en-us/office/dev/add-ins/reference/manifest/officetab
image 1:
image 2:
The Backstage UI can't be customized with web add-ins. See Add-in commands for Excel, PowerPoint, and Word for more information about possible customizations.
Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: “Type: product feature request” at https://aka.ms/M365dev-suggestions .
FYI these customizations are possible using COM add-ins, so you may also consider creating a VSTO based add-in instead, see Walkthrough: Create your first VSTO Add-in for Outlook.

Word 2013 HTML Form Controls not working on some PCs

A colleague and I have received a Word Document by email in docx format.
Both my colleague and I are running Word 2013 32-bit on Windows 7.
My colleague is able to open the document and interact with the form controls.
If I expand his Properties Windows dropdown, I see controls like:
DefaultOcxName HTMLText
DefaultOcxName1 HTMLOption
DefaultOcxName2 HTMLSelect
ThisDocument Document
When I open the document on my PC, the controls are all "pictures" and can't be interacted with as Form controls, rendering the Form unusable. The Properties Window shows only a single entry in its dropdown:
ThisDocument Document
Is this a configuration/compatibility setting, or is there some component that my colleague has, that I don't, that allows him to open the file and use the form?
I have tried deleting the form control caches as per this answer, but it doesn't help.

How to preview all file types with a webbrowser control within Microsoft Access 2010?

I am currently using a webbrowser control to preview documents within an access form which works great for text files, however all other file types will attempt to open in their respective programs. I have a text box that queries a database for file locations and I point the webbrowser control at the text box to open the file location. I don't have anything else set up at this time.
Thanks.

How do you programmatically save an excel chart as interactive web page using Perl?

For example:
Consider a chart in cell F11 of sheet1 in workbook1. How to select the chart area in sheet1 and save it as an interactive web page. The "Illustration 2" in the following link shows how to save a excel chart as interactive web page manually. I want to achieve the same in Perl programming.
http://www.trinity.edu/rjensen/dhtml/excel01.htm
You can produce Excel 2000 style interactive web pages with Perl using Spreadsheet::WriteExcelXML.
See this example that I posted in Perlmonks in 2005, which is also included in the examples directory of the Spreadsheet::WriteExcelXML distro.
However, there are some major caveats:
Spreadsheet::WriteExcelXML doesn't support charts (they weren't supported in the Spreadsheet XML format).
These interactive webpages require an "Office 2003 Office Web Components" plugin which is available for Internet Explorer only.
Interactive web pages aren't supported by Excel 2007 or later. It is a dead technology.
So, it is probably best looking for some other way to achieve what you want to do.

Excel VSTO Addin not handling commandbarbutton.click event

I am developing an Excel VSTO C# add-in. The add-in has a single command-bar ribbon with 1 command-bar-button.
the purpose of this button is to
open a dialog window that allows search dates to be entered
then calls off to a web-service to retrieve data, which gets populated in the spreadsheet.
The problem is that after the install of the add-in it all works as expected. however after shutting down excel, then reopening it later, the click event on the command-bar-button is no longer handled or is not firing.
The VSTO addin is installed from a network location.
If your add-in targets Excel 2007, and doesn't require to be installed on Excel 2003, there is no reason to use CommandBar buttons - use the Ribbon. It will make your development easier, and will look better, too. If you already use Excel 2007 to open and work with the Excel 2003 document and this hasn't caused problems, doing the same via VSTO should not introduce problems.
There are plenty of tutorials on how to use the Ribbon; I have one post on my blog showing how to add a button to the Ribbon to trigger some action: http://www.clear-lines.com/blog/post/create-excel-2007-vsto-add-in-ribbon.aspx