Visual Studio 2013. Viewing a PDF file - vb.net

I am writing a Windows Forms application in which I need to view PDF files via the Web Browser control. When the control is given the Navigate("C:\filepath") command, Windows takes over and asks which program I want to open the file with. All was fine with VS 2010 and XP. I have un-installed "PDF Complete", which was the default PDF viewer, but I now get asked for an alternative.
Thanks in advance.
Mike Saunders

Related

Office 16 File Extensions not recognised by MS Access

Operating system is Windows 7. Recently offered updates to Office 2016 would not install so I reinstalled Office 2016. Reinstall worked but procedures in MS Access no longer work. I.E when trying to open a docx or xlsx file nothing happens; no error messages. A procedure designed to create a word file creates rtf. If I change the file extension of the files to .doc or .xls, things work. Docx and xlsx files open normally if opened directly, i.e. not via an Access procedure. Have done a “Quick Repair” of Office. Have decompiled Access.
In Control Panel/Default Programs, there is:"Set default programs". In Access, Excel and Word I made sure that all extensions were selected.

How to save an open .pdf file in Adobe Acrobat 10 with VBA

I am writing an application in Microsoft Visual Studio which will open a pdf file from a database. Acrobat 10 is installed on the host machine.
I want to:
Detect that the .pdf file has been opened
Save the .pdf file to a given directory once it has been opened
I could always use the mouse pointer to navigate to "file", "save as" and save the file, however I want this to work on multiple machines with varying screen sizes.
I hope there is a way with the supporting libraries that this can be done, thank you!

How to make .exe setup in visual studio 2010 including excel template files

I have developed a tool that will extract data from xml file and drop in formatted excel file.
For this I have 3 types of formatted excel files.
so my question is that whenever I m building .exe file, and try to install this file on another (user's) machine, it will not find that excel files.
and my code give me an error.
How can I include that excel files with .exe setup?
so that I do not need to give that files separately.
I m using Visual studio 2010 express
thanks in advanced.
try to compile your code with Advanced Installer
Here are a couple of options.
1) With respect to a setup tool, Microsoft depreciated their own Setup projects and started including Install Shield Limited Edition. This link should help if you want to check that out: InstallShield Limited Edition is available for download in Visual Studio 2010 I tried it for a few projects and found it ok. It does about as much as the prior Microsoft Setup projects.
2) A less conventional option may be to package the excel templates into your exe as a resource file and then write them to the file system when you run the first time. To do this...
In VS, open My Project and click the resources page on the left.
Click the Resources page and used the Add Resource item in the toolbar to add an existing item. Select your excel file and repeat this for each file.
In your code you can save the resource to disk with code like this:
My.Computer.FileSystem.WriteAllBytes("excel filename.xlsx", My.Resources.ExcelFile1, False)
This option will understandably make your exe larger.

How To Embed Flash Player In Visual Studio.NET (VB.NET)

How To Use Adobe Flash Player In Visual Studio.NET (VB.NET)
i have a SWF file will be created by Micromedia Flash Player , when i want to use this SWF file in Visual Studio Web Form , I do not see a component in toolbox to use my SWF file in web site
how to use my SWF file in VB.NET ? Which By Tools ?
Thanks
If you are creating a WinForms application, and you want it on a form, your best bet is probably to use a WebBrowser control and essentially create the webpage you want to display in it as HTML.

i want to add flash file in my windows mobile application.

I am developing application in vb.net. please help me how to add a flash file in my application.
Found this on Google searching for "windows .net flash control." I looked for the COM reference as specified in the article using Visual Studio 2010 and was able to add it to a test application very quickly.
http://weblogs.asp.net/twalters/archive/2003/12/29/46265.aspx