Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm converting an ASP Classic project to .Net, The original application uses something along the line of:
this.oWord=GetObject("","Word.Application");

to display an instance of Word in an iframe using an ActiveX object.
The web page contains controls to do fairly sophisticated control of the opened Document. The code for those looks like javascript, but I'm pretty sure it is JScript. Not only do web page controls save the document, they insert bookmarks.
Yes, I have a problem.
This is an internal Intranet application, not Internet, so it will only run on a PC with MS Word installed. I have a lot of control available.
Can anyone offer any suggestions? Any Approach? I'm wondering if it might be possible in a Windows Form Application, but that would be a very last resort and I'm not sure the client would accept that. (Whoever wrote the original ASP program was very good.)
Thanks much, Mike

What I have tried:

I have extensive knowledge using the MS Interop and the OpenXML SDK (Oh Joy). This project has had me unzipping .DOCX files and manually updating XML that had become corrupted. (Hey, I programmatically manipulate even PostScript files for this and read PDFs as text files for info in them.) Oh yes, I'm all for any cheap thrill.
Posted
Updated 12-Jul-18 3:08am
v3
Comments
F-ES Sitecore 11-Jul-18 10:08am    
Back when we were writing ASP sites browser security wasn't as tight as it is now so things that worked back then you'll struggle to get working now. Not because of Classic ASP, just because of advances in browsers and security. Depending on what the scripts are doing it might be easier to do the manipulation on the server-side by uploading the file, using XML SDK\DocX etc then downloading the results to the client again.
Dave Kreskowiak 11-Jul-18 12:29pm    
This is going to have to be rewritten anyway. Browsers don't support ActiveX anymore.
Kornfeld Eliyahu Peter 12-Jul-18 4:22am    
Do you mean editing a Word document inside web page?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900