I've to create one asp web application using C# to show word document(docx) in the form(browser window). Is there any active control or COM components are available for that means help to achieve it
please help me ...
Related
What I am trying to do is a bit complex:
I have a web site developed in asp.net, this site is displayed in a desktop application which was developed in WPF, the browser used to show this site is awesomium.
I need a way for one of the C# classes in the asp site (back end) to ask for information from the WPF application and get a response. all of the information is simple string.
A big plus (but not a requirement for the solution), in the site there are a few pages + I will need to add this implementation in other sites that I will build in the future so if there is a solution that does not affect the front end or the html file that will be helpful since it will prevent a dependency between the front end and this code.
kindly tell if there is any way to solve the connectivity of the vcsharp with asp.net. as i am trying to run the c# windows form application on asp.net to make my website more knowlodge able. Is there any other connevtivity option besides aspnet.
You can run web application in windows Forms application. You may embed the WebBrowser control. It makes sense, but if you want to run desktop application in a asp.net web this doesn't make sense IMO.
If you want to benefit from Rich Controls behaviors, you have web widget available within jQuery UI, BootStrap, etc.
Don't mix things
EDITS: According to your first comment, I'd suggest you to search for the web sdk for arcgis or an equivalent. Or You may need to reference dll available in the SDK and use web controls to display data
Plz read this
How can I launch a website in c#, and insert javascript in it?
Basically what I am doing is, I created a windows forms application with textfields that match the textfields in a website, and after filling in the fields in the forms application, it needs to open that site in a browser (with a query string that has the values in the textfields), and then insert some javascript in the DOM which will then add those values in the textfields and then invoke the click command of the submit button.
Thanks.
Omega,
You are looking for Web Browser Automation, see below:
Website Testing - Automation, Autofill, etc. (C# WinForms)
Microsoft Web Browser Automation using C#
Also see if this library helps you:
http://seleniumhq.org [never used it personally tho]
But I don't know why you want to inject JavaScript... if that is to set values of textboxes and button click, you can do it via code behind in C#... You have the Document object of AxWebBrowser or WebBrowser control in Windows Forms and you can play with it!
I hope this helps
I am developing an intranet web application for my company and now I need to add Print Functionality that enables the admin to print some charts (either Microsoft Charts or Dundes) and GridViews in PDF. So is there any simple way to implement this functionality?
I tried to use iTextLibrary but it is very difficult to use and customize.
Microsoft Report Viewer controls? it is not direct printing but it only takes one extra click to export to pdf.
We have a web application that can be tested using Selenium, but that's not enough because the web application will be used inside a WinForms application using the Web Browser control.
The WinForms app interacts with the content of the page hosted inside the Web Browser Control and viceversa.
We have tests on other layers like services, but we need to find a way to test the WinForms UI that interact with the Web Browser control.
Any suggestion?
In addition to the link which Myles kindly provided, I also blogged specifically about calling the WebBrowser control from C# WinForms applications here:
http://matthewskelton.wordpress.com/2007/04/21/calling-javascript-from-c/
Specifically, you can use Type.InvokeMember() to call JavaScript from C#.
In terms of testing this, I suppose you'd need to drop a JavaScript listener/logger into the DOM, hooking it onto a low-level event or prototype, and then log out to the JavaScript console.
What you need is a WinForm test automation. A friend of mine blogged about this recently; http://matthewskelton.wordpress.com/2012/01/08/test-automation-tools-for-winforms-desktop-applications/