Set MIME associations for MS Works - mime

My website issues documents in .rtf and .doc format. One of my clients only has MS Works installed on his machine. It seems that his machine is attempting to open the documents in Notepad, which is far from ideal.
The client does have MS Works installed, which would presumably make a better fist of displaying these documents. Does anyone know how he might configure MS Works to take over responsibility for opening application/msword and application/rft MIME types?
Many thanks
David

application/vnd.ms-works.

Related

Refresh All Queries and Connections of an Excel Workbook (Excel Online) using Office Scripts and Power Automate

I started using the new Office Scripts in Excel on the web. I was wondering if anyone knows if it´s possible to Refresh the Queries and Connections of an Excel Workbook saved on SharePoint Online.
I would like to run the script utilizing a Scheduled Flow in Power Automate.
There seems to be a workbook.refreshAllDataConnections() Method in typescript (when writing in the Script Editor) but it doesn´t really do anything.
Thank you in advance for your help!
The Power Query refresh is not supported for the time being. Regarding other types of connections, it is not yet detailed out in the API. There's a docs bug open to get clarification on what types of connections are supported.
Docs bug: https://github.com/OfficeDev/office-js-docs-reference/issues/805

Programmatically working with Outlook's OFT format (on linux)

We have a project that has numerous Outlook OFT files. Users download these files and use them to send prewritten emails in Outlook.
I have been looking for a way to convert these files into plain text. Ideally, this conversion functionality would be incorporated into the web app that runs on Linux servers. I mention Linux because Outlook and OFT are Microsoft products.
I have not found any libraries, class, tutorials around this topic. I have found very little conversation besides trying to do HTML->OFT which points to a Microsoft only library. I am most experienced with PHP, but I am open to any approach.
FWIW, I believe OFT can have templating information in it. I am only interested in extracting the message content/body.
OFT is the same an MSG (with a different class signature GUID). Whatever library you can find for working with MSG files, will work with OFT as well.

Does Windows, Outlook, or Exchange have an API for reading iCal format?

I'm trying to add iCal import support to my existing scheduling application which needs to support Windows XP, Vista, and 7. Writing iCal format is easy, but reading it is another story, mostly trying to convert times to local times with the complex TIMEZONE/TZID/RRULE syntax. Ideally Windows would have a native API for this, but I haven't found one.
I know Outlook 2007+ has an OpenSharedItem function that would work. I don't want to require users to have Outlook installed though, since my application "competes" with Outlook. I thought about writing a web service that would use Outlook on my web server to do this, but I know using Outlook OLE/COM objects from a service has issues, so that probably isn't an option either. I do own about 300 Exchange Server licenses, are there any APIs with Exchange that would maybe work better? I do notice when I email iCal files from GoToMeeting.com they say they were created with "Microsoft CDO for Microsoft Exchange", so I have a feeling they are doing something like this to avoid writing the format themselves.
My application is written in C++ using mostly native Win32 API, but I don't mind creating a .NET DLL for this, or even requiring users to have Internet access so I can post the file to my web server and have it return a converted format my app can use easily. My web server runs on Windows though, so anything Unix-based might be dificult. Other than that, I'm pretty open to options.
Update: I did find CDOEX but as I've never used it before, can anyone tell me where to start and if it can in fact do what I need? I don't really see much about iCal in the docs, and I'd need to install Exchange on my dev PC (not crazy about that) to start playing around with this API.
You can try to use Redemption (I am its author) - it allows to explicitly import iCal files using RDOAppointmentItem.Import(..., olICal).

Automatic download/upload

We are going to develop a client-server application with web interface which will store office documents on server.
When we use browser as a client we need to perform these three steps to edit a document:
download document to the local machine;
open it in office program and edit;
upload document to the server.
It is very inconvenient. Sometimes it is hard to find where a document was downloaded to, when we need to upload it. Customers will also forget to upload document after editing.
Is there any way or technology to upload document automatically?
Or just any ideas how to make this process more convenient.
Thanks in advance!
I would, suggest, if applicable to store all documents as HTML then allowing editing in a web page powered by CKEditor or a similar tool.
If your documents must be in another format, like Office formats, you might start thinking at Office 365, or use ActiveX controls in your web application, something I believe should be deprecated but works in small (better restricted) enterprise environments.
These are just a couple of ideas.

Image Uploading with Classic ASP

Hey I was wondering if there were any way to upload images in ASP? I am working on my school's server and I don't really know what is installed and what isn't I Googled a little and came up with "Persits.Upload.1" I tried to instantiate the object with this line:
Set Upload = Server.CreateObject("Persits.Upload.1")
It gave me this error,
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
Am I to assume the component is not installed on the server and/or what should I do for uploading images?
Thanks
Sounds like it couldn't load the class, my ASP very rusty though.
That component is a commercial one, so unless someone has paid for it, you probably don't have it installed.
I have used free asp upload http://www.freeaspupload.net/ a few times, although it was a while a go, that might be a reasonably easy option for you.
File upload is a built in part of html and you can process it in asp without any custom compents. Here is some more information:
https://web.archive.org/web/20180312071127/http://www.4guysfromrolla.com:80/webtech/LearnMore/Upload.asp
This is part of the ASPJpeg library, which needs to be purchased (From Persits.com).
I have used this library to upload multiple items in the past.
To upload a single file you can use the <INPUT type=file name=filename>. This is just HTML though, but should work in all browsers
If it's for educational purposes it may be worth droping Persits an email to see if they will give you a free license.
They offer a 30-day free trial on their site.
Good luck
Will Rickards' link is good. You will also need permissions for the IUSR to create files in whatever directory you are uploading too.
IIS (6 I think?) comes with a limit of 200K for uploading files. Only the server admin can change it to allow more.
If you can get your schools server to install COM objects, there are a number of free uploading tools that make things very easy.
I have older classic ASP apps that use the Persits Software AspUpload component. It works great if you need to resize images, get image dimensions, etc., during the upload process.
It is a component you need to purchase and it needs to be installed on the Web server in order for it to work. It is not a core part of ASP.
by the way, you have a typo in your code, is
Server.CreateObject("Persist.Upload.1")
and not
Server.CreateObject("Persits.Upload.1")
I bet that if you correct this, the code will go smooth :D

Resources