Salesforce.com - Visualforce and ActiveX - html

I have a Visualforce page through which I am trying to access a SDK. It is done using ActiveX control. The VB + JS script that I have runs fine when it is a normal HTML page residing on my desktop. However the same code when incorporated in Visualforce does not work. Does running ActiveX control require uploading any kind of files to Static Resource? My code need not be a Visualforce. If there is any other way I could integrate ActiveX with Salesforce, even that would be fine.
Thanks in Advance.

If you need somewhere to host the .cab (or .ocx) file, then you can put that in a static resource, and reference that from your VF code.

What browser are you using to test? If IE6 it may need you to enable the ActiveX controls.
If you go to Tools->Internet Options->Security Tab. Click ‘Custom’ and OK any message. Then scroll down to ‘Script Active X Controls ….’. This should be enabled.'

Related

How to show File Saveas Dialog in Blazor Server App

I am new to Blazor and trying to show File Saveas Dialog as shown in following link on a button click.
Save as Image
The requirement is - upon clicking the Saveas button above Saveas dialog should be popped up where user can choose the destination of file and file name.
I have tried "enabling the setting to check the save location in the download settings of the browser" and it works. But we do not want to depend on the Browser settings.
Please add your thoughts on below..
Instead of depending on the browser settings is there any other way to show Saveas dialog?
Are there any open source Nuget packages available to help on this?
NOTE: I am using .NET 6.0 for building my application
Thanks in advance,
Bhargavi Gowri.
I also wanted to bring up a window to save a file in which the user could select a folder. Before that, the system automatically saved to the Downloads folder.
As I understood, there was no such possibility before, but now it is possible thanks to this api: https://caniuse.com/native-filesystem-api.
I found this solution in the answer to this question: https://stackoverflow.com/a/70001920/16740180.
It's worth noting that I use Blazor WebAssembly and not a Blazor Server. And I do not know if it will work for you.
Unfortunately, this doesn't work for mobile devices right now, but it works fine for windows. I hope this helps someone.
This isn't a Blazor thing. In web browsers, files are downloaded from links using <a> tag in HTML using the download attribute. Just create a link to your file:
<a href="path_to_file" download>Save</a>
Save
The path must be on the same server, but blob and data links will work as well.
If you do not suggest a name, the browser will use the original filename (possibly changed to remove symbols the OS doesn't allow in file paths).
https://caniuse.com/download
If you want your link to look like a button, then that's a different issue, and you can google or ask that.

SSRS report viewer for HTML5

We are using a web application in html5 and I want to integrate the developed ssrs reports into it. I want to create a report viewer for displaying the reports in my web application. I do not want to use .aspx page or any mvc page. I want the report viewer in html5.
Thanks in advance
Correct me if I'm wrong, but it sounds to me as if you are requesting that Microsoft add a .NET library or some "embeddable control" that you can put into an html5 project. Currently, I do not believe that there is a control for displaying the reports in html5 as you are requesting. You must use a work around as suggested by Coder of Code.
You can also look to these threads which basically say the same thing:
https://social.msdn.microsoft.com/forums/sqlserver/en-US/7613447b-3590-4494-a94a-498af49f85dc/does-ssrs-2012-support-html5-and-dynamic-position
If you are just trying to show the HTML render of a report and you want it to look like a native object to the application without any parameters or toolbar, then you could call the URL for the report directly and include "&rc:Toolbar=false" in the URL. This will hide the toolbar for the Report Viewer control. This method is described under the URL Access Parameter Reference msdn article. Not exactly what you asked for, but it may achieve the purpose.
You can use the Reporting server's URL for your report as it returns the data in the HTML format and show that that in the IFrame in HTML. I never did it but this approach can work by setting the Iframes URL as the reporting servers URL which will be something like this,
http://ServerName/ReportServer?%2fSome+Folder%2fSome+Report+Name&rs:Command=Render&rc:Toolbar=false&rc:HTMLFragment=true

Open file with Tabris and RAP

Evaluating Tabris developed by eclipsesource, I could create a simple application browsing some filestructure from a backend. Now I would like to know how it is possible to open/show a file's content. On the serverside I created a service handler for the download. But opening a shell containing a browser widget with the URL to this service just does nothing but show a blank page. If I use "http://www.google.de" as URL then the browser shows this site.
Any ideas?
Does the service handler render html? Can you open the url from a new browser tab and is it showing your content?
Browsing files with a browser widget feels odd to me. Why not using a JFace TreeViewer to show the file structure?
In the upcoming release in December 2012 (Version 0.9.0), the AppLauncher aka OpenWith will be implemented. This will improve showing file contents with an appropriate app - so you don't heed to display everything in a Browser widget.
See: https://github.com/eclipsesource/tabris/issues/89

Hosting a WebBrowser control in aWeb Page

i am following the below mentioned tutorials to create a custom Windows forms control library. I am able to host the control in a html page and test it for the given label.text change examples.
http://weblogs.asp.net/spano/archive/2007/09/19/hosting-a-windows-form-control-in-a-web-page.aspx
http://www.codeguru.com/csharp/.net/net_general/internet/article.php/c19639/Hosting-NET-Windows-Forms-Controls-in-IE.htm
However when I use a WebBrowser control in the custom user control, it works in Windows forms application but doesnt even load in a html page, even though I am following the exact procedure as in the example.
How can we have a user control having WebBrowser control be hosted in a HTML page?
Thanks,
Anil

How can i go back, forward and print a (local) WebBrowser1.DocumentText html page that's sourced from my.resorces - vb.net

the title basically says it, i have a from with a treeview and a webbrowser control and three buttons. i want the back button to load the previous viewed html file from myresources and the same but opposite for forward?... also how can i and where can i link my external css to my program like my.resources so when i export the program for installing on another machine it still works? and one more thing... how can i intergrate/embed the webbrowser control into my program because as i believe it uses internet explorer and if someone installs my program onto their computer and they have un-installed ie and use firefox it won't work? thank you guys very much, i know it's a lot of questions but you guys are awesome!. thanks
It would be easy for you if you read this web pages from the resource file and then save them to a disk.
In this way you can simply pass the physical path to the Navigate method and similarly you can use GoBack and GoForward and Print methods.
But if you don't want them to save them, you still can read the web pages from the resource file and then use DocumentText property to display the webpage.
Using this method you won't be able to navigate back or forward.