Word 2002 SP2 - SaveAs HTML oddity when using DsoFramer

U

Urs Eichmann

Hi all
I know DsoFramer is not supported by MSFT, but perhaps somebody can
still help me with a very strange problem.

I'm using DsoFramer to embed Word XP in a VB.NET 2003 application. I
save all documents as HTML, using ActiveDocument.SaveAs
<filename>,wdFormatHTML. Now I discovered that, if the document contains
textboxes (in a drawing canvas), after saving as HTML, all the boxes are
aligned to the left border of the pages. The original position is lost.

But - now comes the strange part - if I save the exact same document
interactively as HTML (NOT in DsoFramer), the text box positions are
retained and everything is well.

It also works if I use OLE automation with a Word instance in a separate
window instead of DsoFramer.

Is there somehow a different HTML converter used if embedded within
DsoFramer? Does anybody have an idea how to work around this?

Any help would be great.

Urs
 
P

Peter Huang

Hi,

Based on my understanding, you wants to convert the doc file into html in a
embeded container in windows form.
If I have any confusion, please feel free to let me know.

As you know, we do not provide support for this software. But I think you
may try to host an webbrowser control on the winform and then host the word
document in the webbrowser.
HOWTO: Use the WebBrowser Control to Open an Office Document in Visual
Basic .NET (304643)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;304643

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top