My silverlight 5 application has a third party grid. I need to export the grid & open the excel for user machine. The grid supports export feature which writes the content in Stream stream = dialog.OpenFile() Export is working fine. The new requirement is to open the file instead just saving the file. I cannot run my app in OOB, I also hate to push the file to my service / website and download file from there. Is there any effective workaround or solution to open the content in user's excel application without making application as trusted with certificates?
It is an essential security feature of Silverlight to not allow starting other applications or even open websites when running in browser and not running as trusted application.
So as you might have guessed (as there were no answers to this question for about one and a half years) the answer to your question is: No, there is no effective workaround for your problem.
I had that problem myself, and went for the solution to send the file to a webservice and store it on a network-share. From there the user is then able to open it...
Related
I've installed the Remote System Explorer Plugin for Eclipse and set up a SSH connection to our development server using public key authentication and a custom Port (not sure if any of these customisations relate to the problem).
However browsing the file system works great and I can even create folders and files. E.g. /tmp/foo/bar.txt but I can't figure out to "push" changes I've did to the server.
So my problem is I open a file, write some text and save it in Eclipse. The asterisk next to file names vanishes (indicating it's save) and if I close an re-open the file in Eclipse the changes are present. But they're not visible on the server. E.g. doing changes to a .html file won't show any changes in the web browser or cat bar.txt (mentioned earlier) produces an empty output.
Creating folders or files is working as intended but updates to file contents are not shown up on the remote system though they're persist in Eclipse.
Is there some button I'm missing to update my "local" changes to the "remote server". Can I even get rid off all this caching? As we're working in a Team it's crucial our Files are always up to date and having some extra caching would definitely spoil all the fun :(
My IDE configuration is like that :
Eclipse IDE for C/C++ Developers
Version: Juno Service Release 2
Build id: 20130225-0426
Get a handle to the IFileService that is hosting the file ... this gives you the ability to upload files.
I have a use case that requires offline access to google earth. I know that google earth enterprise offers a disconnected product, however we may not have access to that product and/or google earth enterprise is prohibitively expensive at $25K for a dev license.
I would prefer to use the google earth plugin since I am building an application and would like to use the JS api. Is it possible to host the google earth plugin on my own disconnected server? We would use google earth connected to a standalone offline WMS server for access to imagery.
said another way, can I host the plugin and corresponding javascript on my own server?
I do not know if i understand well your problem but i can explain you waht I'm currently working on.
Im my current application with google earth plugin js api, I'm able to start the plugin even if offline. But one requirement is to have cached data.
If you have cached data and if you start the plugin offline, then zooming to a level with higher resolution that the one you have in your cached data will have no effect (imagery will not be update to higher resolution)
but depending on what you really need, yes , you can start the plugin offline
This is not really answering your original question but if you are interested, just tell me :-)
I tried to cache Google Earth with a proxy server but I couldn't.
Furthermore I think the api is validated every time it loads against Google Servers and doesn't allow offline use
It's some monthes now since I have worked with this.
I'll try to explain with what i can remember :-)
in the html where i have my plug-in, i have removed:
"script type="text/javascript" src="https://www.google.com/jsapi">
but i have saved locally this jsapi.js file. I also saved locally loader_1-008.js
then, im my code (c++, Qt) I'm using evaluateJavaScript(Qstring source) twice
where source is the text read from my 2 .js files
These 2 evaluateJavaScript calls need to be done before loading my html (the one with the plugin)
in my QWebView
I can not remmeber much more but I hope this can start to help you
When starting an online-radio, the problem for me is that I do not want to run a program all the time locally on my computer.
Rather I would like to write a web service, which automatically and randomly plays a mp3 from an online database. That way the online radio could be up 24/7 without much trouble.
Is there any framework you know of or is there already an open source web service for this?
More generally, how would you approach this project?
Thanks for any ideas and suggestions!
Dietmar
I'd like to build in updating functionality to a desktop Windows/Mac application and I'm wondering if there is a 'right answer' how to implement this. For instance the client could use libcurl to connect to an FTP server - there are many possible ways but hopefully people have already decided which is best.
FTP can bring several advantages when used for automatically updating your software. The part that will fetch the new version from the FTP server, download it and run it instead of the old version is easy to implement and the main advantage is that it will not require any server side software.
The disadvantage using FTP is that there is no way to check the date/time stamp of the file before downloading it, like you can do while communicating with a server side software. That can be solved by placing a small file (.txt) where you store the new version information so the current version can check that file and see if it should download the full version.
The other side of an FTP auto update mechanism would be another software you need to create which will upload new versions, create the version details text file and maintain a log of uploads, versions and downloads.
I have created a windows service which checks for the status of the printer.
The user can download this service from a website. I need to query for the status of printers used by this user. So when the user clicks on the download button I want to store the user information in a file which my service can use. The service will use this information to fetch the printers from the database. I want to include this file in my installer. So I have to create the installer at runtime(i.e. when the user click the download button on my website).
How can I create the installer for the win service dynamically using C#?
NOTE: my win service is written in C++. I know about WIX.
quite a few years ago, when I did some work with InstallShield, it was possible to specify in the installer project which file(s) you don't want to be compressed and packed into the .cab files (or whatever they are called nowadays) when generating the installation package. Such a file would be left as-is and separate in the package, and you could later replace it with another file with the same name (I think I actually did something of the sort). So you can have a dummy file when building the install package, and then replace it on the fly with the right one.
I am not familiar with modern tools, but am quite sure this functionality is preserved as it is quite useful.
In WiX you can create custom actions which are arbitrary code you write (You provide the .dll which can be built using C++). In the custom action you can generate your user/location customization file.