Is there a way to load ReactJs extension inside CefGlue (windows forms c# application)? - cefsharp

We are trying to load reactjs extension in cefglue chromium. We were able to override cefextensionhandler and were able to use loadextension. The extension successfully loaded message is also received but when we goto developer tools, it does not show.
Do we have any working example with cefSharp / CefGlue to load extensions inside chrome? We are using cefglue in our application. (the current application is inside office loaded as task panel and works fine for end user.) This is more of a developer's request - who find it useful to use the extension.

Related

Not able to convert applet to Jwrapper app

I have an applet project which loads sensor dlls and loads sensor gui in web page,using jwrapper i am able to build the project and create 2 files FutronicAppEmbed.js FutronicAppEmbed.html ,but when i am running this FutronicAppEmbed.html nothing is displayed in browser.Please help.
If you open the HTML file in a browser you won't see anything as it won't load properly but if you put all the files from your build folder on a web server and then load the FutronicAppEmbed.html page you will get a download button for the app appropriate to your operating system.
JWrapper is an alternative to applets though in that it is an app delivery system which allows you to do dynamic parameterisation (as you can with server-side generated parameters in applet pages), but its not a direct replacement for applets in that the app will load in the web page. Instead you will need to specify a standard java main method and load your app in a swing frame and JWrapper will launch that.

Web Api + AngularJs on azure in one solution

I have deployed Web Api + angular js application to azure web apps in one visual studio solution.The starting page (index page) is in index.cshtml format.
I cannot for some reason navigate to my angular page. i.e if i go to
webname.azurewebsites.net/#/signin i get the following message angular doesn't seem to activate.
This web app has been successfully created
There's nothing here yet, but Microsoft Azure makes it simple to publish content with GIT, FTP or your favorite development tool such as Visual Studio, Visual Studio Online or WebMatrix
Tell me more
However, I can access the Web api part just fine. I call web api using: webname.azurewebsites.net/api/getitems <-- this works fine.
i presume there might be something to do with index.csthml file that I am using (it works fine in local iis).
Is there anything specific i need to do on azure to use index.shtml file with angular?
If i use index.html file it works fine. The only reason why i am using the index.cshtml is that i can utilize the asp.net bundling feature. I am aware that i can use grunt to do the bundling minification but at this stage i don't the time to invest in implementing grunt.

Generating PDFs using Phantom JS in .NET on live server - NOTE: works fine locally

I'm using Felipe's example on the following page and it works fine locally.
Generating PDFs using Phantom JS on .NET applications
However, phantomjs does not create the pdf on the server. The website we're attempting to add this feature to is built using the Umbraco CMS. Any idea in terms of permission or setting changes needed in order to get this to work?

VS2013 Extension: How to open a file?

I would like to create a VS2013 Browser Link extension that opens a basic javascript file. How do I invoke VS's methods to open a javascript file? I'm new at this and the API to do this in a traditional VS extension looks very hairy and scary!

How to call a windows form app from ASP.net

I am trying to use activeX to start a windows form application written in C# from my ASP.net website. When I click a button I would like a new page to open up and activeX on that page would call my windows application.
I am using Visual Studio 2010. I have followed this tutorial: http://dotnetslackers.com/articles/csharp/WritingAnActiveXControlInCSharp.aspx
However, that tutorial is only for 1 C# file which you compile via console.
My questions are the following:
1.How would I compile the entire windows form project to use the /t:library and regasm?
2.I have followed this question answer to modify my windows form application: How do I create an ActiveX control (COM) in C#?. However, like in both examples, they do not have a Main method. When I tried to modify the code of my windows form app, I get the error saying the program does not have a Main method for entry if I take it out and replace it with a Launch() method. I am sure I am missing something?
3.Would I just write the java script on the new .aspx page to access the application?
P.S. I am trying to open this open source windows form application: http://www.codeproject.com/Articles/239849/Multiple-face-detection-and-recognition-in-real-ti
Thank you kindly
You can not do that. It would be huge security risk to allow websites to execute arbitrary code on local machine, outside of some sandboxed environment (like JavaScript for example).
AFAIK closest thing to what you want is ClickOnce, that is a installer and use it to install your WinForms app on client machine. It's easy to make installation for project, just right click in VS and publish.
There is a solution that you may be able to use called ClickOnce.
http://msdn.microsoft.com/en-us/library/t71a733d%28v=vs.100%29.aspx
I've created enterprise applications that I deploy to an internet accessible location and link my users to the "publish" website that allows them to click, install, and run the application.
Keep in mind that this will install the application in addition to running it, so if part of your requirements is to not install it, then ClickOnce won't work for your scenario.
I would suggest you can create ActiveX control instead of a Windows Form. You can create it using legacy VB (VB 6.0). You can refer something like
http://www.visualbasicbooks.com/activeXtutorial.html
http://blogs.msdn.com/b/ajma/archive/2004/08/12/213868.aspx

Resources