Host excel file in wpf application - wpf

I am having one excel file that i need to host or embed in wpf application. that file need to open inside wpf application.. and user can do modification into that.
is there any solution for this....
Thanks
Brijesh

I am looking for hosting microsoft excel in my WPF application. Searching on internet for some time , i got below answer.
hosting stand alone office in WPF application

Related

SSRS. Reports seem corrupted within the report viewer

I have a WPF application using server side SSRS reports. I'm using the WPF WinFormsHost control, embedding the winforms report viewer control, to display the reports.
On about 20 development pc's and client pc's everthing works ok. The problem is that in a new clients office, on 2 pc's only, the reports seem to be corrupted when viewing within the report viewer. (They print out fine)
Table data is ok, but header data field values are missing. Has anybody experienced this? I'm at a complete loss as to why on these 2 machines data seems to be missing in the report viewer.
Any help would be greatly appreciated.
The Winforms Report Viewer control is not designed to be embedded inside WPF application. You can use WindowsFormsHost Winforms control to host Report Viewer inside your WPF Application, but the data binding of the ReportViewer has to be handled programmatically, because the ReportViewer control will not have knowledge of WPF's Window datasource at all.
This is a sample walkthrough article of embedding Windows Forms control inside WPF: https://msdn.microsoft.com/en-us/library/ms750944.aspx

create application like simple PowerPoint in c# wpf?

I want to create create application like simple PowerPoint in c# WPF, I meant exactly that I want to create page like slides and can arrange in time line with various speed and transition and can seeing in preview panel.I tries on Microsoft PowerPoint interoperability but as I found It just create PowerPoint file not provide framework to interact!!.
Please show me sample code or sample way to-do or how do it?
One method I have used is to have a WPF WebBrowser control and then navigate to a pptx file. This will open PowerPoint inside the WebBrowser control. You will not be able to interact with the PowerPoint application from your WPF host, but that is about as good as it gets.
Try this control from syncfusion: http://www.syncfusion.com/products/file-formats/presentation. They now offer a free community version with all if their controls.

File loader in wpf

Is there any file loader control in WPF which allows importing files during the runtime?
(choosing any file from the file system).
Are you looking for something like the OpenFileDialog? If so, there are examples of how to use it here or here or you can google "wpf openfiledialog" and find many others.
The Windows Forms OpenFileDialog controls are still available for WPF apps:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/aa21c4b6-aa44-44e0-82c9-6e29d9e3c2e3/
I have mostly seen apps using the win forms dialog or an updated win forms one. For example:
http://gong-shell.sourceforge.net/
As a side note, the silverlight file upload picker for SharePoint 2010 looks pretty good it would be good if MS released that to the wild. :)

Winforms hosting excel spreadsheet

Can I host an instance of excel application within a winforms application?
Meaning, I want to use the excel as my datagrid in a winforms application.
thank you for your input.
Not directly, but you can use a WebBrowser control to host Excel within your WinForms application as documented in this Microsoft article.
You cannot host an Excel application inside of a Winform directly. You can, however, load up an Excel file from a WebBrowser control inside a Winform.
SpreadsheetGear for .NET comes with an Excel compatible spreadsheet control for Windows Forms.
You can download the free trial here if you want to try it out.
Disclaimer: I own SpreadsheetGear LLC

Is any source code available that has an Active X control hosted in WPF?

I am looking for some source code and a project to download and look at that has an Active X control hosting WPF. I can not find any source code anywhere on the net.
I can not add a WPF resource the usual way in an Active X control. I have to add it manually to the reference section.
Not sure if this is even possible. I would check out WPF browser applications. That may be a better solution for you given that if you are going to be running an active x control with WPF the user will need 1) Internet Explorer and 2) .net 3.0+ installed locally. A WPF Browser application will work with IE if the user has .net 3.0+ installed and will work with IE and FireFox if the user has .net 3.5+ installed. Check out WPF Broswer Apps here: http://msdn.microsoft.com/en-us/library/aa970060.aspx
It should be possible, although I don't have the code for it off-hand. You can create an HwndSource, which allows a normal window to host WPF controls, in your ActiveX controls. Then it is only a matter of adding your WPF UI to that window.

Resources