HTML to .doc on phone download Coldfusion - mobile

I'm trying to get my html content to download and run in MSWord on mobile using Coldfusion. It currently downloads, runs, and opens correctly on a PC, but when I try to go on a phone it will not open. It downloads but says, "Can't open file."
<cfheader name="Content-Disposition" value="inline; filename=test.docx">
<cfcontent type="application/vnd.word">
I have also tried:
<cfheader name="Content-Disposition" value="inline; filename=test.docx">
<cfcontent type="application/msword">
Does mobile handle HTML to MSWord differently than a desktop?

According to Microsoft's documentation the following are correct for MS Word (as of Office 2007:
.doc: application/msword
.docx: application/vnd.openxmlformats-officedocument.wordprocessingml.document
For whatever reason, it's possible that even with the correct mime-type, iOS or Android is still seeing the content as HTML.
You might take a look at https://www.docx4java.org/trac/docx4j. Haven't tried myself, but might fit the bill.

Related

Best way to check web-responsiveness

I am wondering if there is a way to check website responsiveness without uploading my code to a host site. I have all of my files and code in VSCODE and I have tested it out through shrinking the browser etc but I actually want to see my site on different devices before I upload my code. Because everything is local to my device I can't think of an easy way to do this without actually uploading everything? Any ideas?
Note: I assume that you already have the Live Server extension installed in your vscode IDE and you are able to open your website on the web browser on the same computer
There's an extension for vs code called MobileView
You can check your local websites as well as global ones just copy and paste there the website link. But it is limited just to three mobile devices (iphone X, 8 and google pixel). You can open all three previews at the same time in different tabs.
But it additionally allows you to check how your site's design will fit to the phones real exterior (its color and shapes).
And of course you can open your website on the real mobile phone if your vscode computer and the mobile phone are on the same wifi network.

Start a browser, any modern browser, from win 7 command line at a preset geometry. Is it possible

I am in need of writing a batch script, which will start "A" browser session at a certain location on the screen and at a certain size and display a locally stored and very simple HTML file. I am not picky about browser type. The html document is nothing fancy, no dynamic content. Just a scrolling marquee when there exists a file.
Is it possible to open any one of major browsers, that is available on win 7 platform, at a location (x,y coordinates in pixels) and at a certain size ? This will be used by an elderly person, who can close any open window by clicking the X sign on the right top corner but other thna that, quite computer illiterate and the screen used always occupied by other content with a bit of space available near the bottom, to scroll this message.
If it si possible, could you please tell me the syntax of the command to run in the batch file ?
This won't be possible in batch (the only options with the start command are Minimised/Maximised).
This will probably be possible in C# though. Even better, if you dont want the browser to be fancy like you said, you could easily make a browser in C#, and make it take a number of parameters which would adjust sign and postition. If all you need is for the user to observe a html document and then close the browser I would seriously recommend you learn some basic C# and make this, or post another question presenting you're conundrum tagged C#.
Mona
You can place your html content into an .hta file that will be handled by mshta.exe. This is a container for the web browser control, but running with the security of a desktop application. So, you can include the required code (javascript, vbscript or any other active scripting engine available on the machine) to access the window object and move / resize it as needed.

Silverlight XAP File not being downloaded

Wow. The feature that shows related questions WHILE making the questions is very nice. Unfortunately, none of the questions addressed my problem, nor did any of my searches worked. I did find several questions with the same problem I'm having, but none of the solutions have worked for me.
My development laptop is WinXP with IIS 5.1. I'm developing a Silverlight 4 application. Everything was working 100% perfectly, even without registering MIME Types in IIS. Last Thursday, VS.NET stopped debugging my application and the area where Silverlight was supposed to show was being left blank and there were no java errors shown by Internet Explorer 8. I got the same behavior in Firefox 4. If I right-clicked on the blank area, the usual Silverlight context menu showed up and I could see the settings.
Using Fiddler I noticed that the browser makes the request to the correct file, but it looked like the server either hangs or did not respond with the file stream. With this information I browsed my virtual directory using the browser and tried downloading the file with a right-click/save-as, but the browser just hanged waiting for a response from the server.
Tweaking the source code I noticed that, if I comment some code (any code at random, no code specifically, as long as no compile time error shows up), the application starts showing the log-in page correctly and I can download the XAP file correctly again. If I un-comment the code, the log-in stops working again and I cannot download the XAP file anymore.
I already tried registering MIME types in IIS (and double and triple checking I was writing the entries correctly), double and triple checking that the XAP file address was correct, tried changing the XAP extension to ZIP, and reinstalling Silverlight 4 Tools for VS.NET 2010.
At some time I thought it might be something about the XAP file size, which sits at 512K working or not. So I placed a 30MB file in the same directory as the XAP file. However, when I try to download the 30MB file, the download starts successfully.
For example, using directory browsing, the file shows 523587 bytes in length. This can be downloaded normally. If I un-comment whatever code I commented, the file shows 524194 bytes and the download stops working.
One last thing, I checked the Even Viewer and noticed an error thrown by ASP.NET. "aspnet_wp.exe (PID: 2100) stopped unexpectedly." Googled about this error and most hits took me to a virus and several tools for its removal. Tried the tools as well and all of them reported not finding any indication of the virus.

unable to view silverlight based sites -Your current security settings do not allow this file to be downloaded

I am trying to browse silverlight.net from a fresh windows2008 machine
I try to download the silverlight plugin displayed in the above site, instead the error message below is shown.
Error: Your current security settings
do not allow this file to be
downloaded.
I tried adding the site to trusted zone as well but no use
Is there anyother tweak I need to do
Windows Server 2008 comes very locked down. Way too much so, in my opinion. My first recommendation would be to download and install Chrome, which is a much better browser all around, and then go from there. But that aside, you can also try:
Try this (from here):
Open Internet Explorer browser
- Go to Tools menu
- Select Internet Options
- Go to Security tab
- Select Internet zone
- Click on "Custom level..."
- Under Downloads category, enable the option "File download"
- Under Miscellaneous category, select Prompt (recommended) for the option "Launching applications and unsafe files"
- Under Miscellaneous category, select Prompt (recommended) for the option "Launching programs and files in an IFRAME"
- Validate the changes by clicking on OK
- Leave the Internet Options
- Close the browser
- Re-open it, this issue should be fixed ^^
Arcgis.com also uses SilverLight. It complains "This application requires you to update your browser with the Microsoft Silverlight plugin. Click here to update." The update link seems to be valid, and works after applying Ken Smith's answer from 31Jan, but downloads a 32-bit version under IE 11.0.9600.17207, under Win 8.1 x64. The installer says a newer version is already installed, and aborts. After restarting IE, back to the same complaint at arcgis.com.
Clearly IE under Limited User acct has some additional setting(s) that need tweaking. IE under Admin acct works fine accessing arcgis.com .
Via: www.iegallery.com/Addons/Details/644, tried "Add to Internet Explorer", but nothing happened. JavaScript must be enabled.
However, even after getting to a place where the valid version of SilverLight will download, the install fails, because "the same version is already installed". So IE under a Limited User acct is Still w/Out SilverLight plug-in...

Round trip editing of binary documents stored on a server

I'm looking to build some functionality for a content management system for the editing of files stored on the server.
I'd like to provide users the ability to easily download files locally to their computer, open the file for editing, and save it back to the server. The process should be as seamless as possible.
Here's the steps today:
Click the link to download the file (say a PSD) in a web browser
Save it to disk
Find the file, open it for editing in Photoshop
Make changes, save the file
Go back to the browser,navigate to the file that was downloaded.
Click "replace file"
Find the file, upload it back to the server.
Here's what I want:
Click the link to open the PSD file
File is downloaded, Photoshop launches
Make changes, save the file
File is uploaded back to server, replacing the original file
Those who have used Sharepoint know that this works (using WebDAV) but only with the Office applications (PPT, DOC, XLS). I'd like it to work with all file types.
This will take some kind of software to be installed locally - perhaps a separatly installed application with a mime type registered, a signed java applet, or a firefox extension.
This seems like a problem that should have been solved. Has anyone seen this done before?
Windows client OS has a WebDAV redirector and has had for a long time, so
a) you shouldnt need a client piece and b) it's not specific to Office files.
The fun bit is the server end, implementing a WebDAV server.
WebDAV isnt supported on client OSs like Vista (IIS5.1 has support, 6.0 doesnt), only on Servers (2K3, 2K8...)
There is goo/examples/frameworks (cant recall which from when I researched it) available for implementing a WebDAV server, but it requires a server OS [so I had to discount it as the host in my case could potentially have been Vista/7, not server/XP).
The site WebDAV Resources includes a link to at least one open-source server implementation. I haven't used this software, I'm just citing the reference.
It appears that Apache has deprecated or dropped support for server-side WebDAV since the Jakarta Slide project has been retired.

Resources