How to Integrate Word in Windows Application - C#

  • Thread starter Thread starter venkat
  • Start date Start date
V

venkat

Hi Every body

I am using DSOFramer Control To host a Word Document .I am successfull
to the document But One Problem i am facing


1) i want to find whether the document has been modified or not for
external event like button click.
2) i want to supress the open dialog when i CTRL+Save When word
property is set to ReadOnly Recommended.

Sample Code :
string tempDir = System.IO.Path.GetTempPath();
openedFileName = Path.Combine(tempDir, "My_Doc" +
DateTime.Now.ToString("MMddyyyy_HHmmss") + ".doc");
FileStream tempFile = new FileStream(openedFileName,
FileMode.OpenOrCreate, FileAccess.ReadWrite);
tempFile.Close();
this.axFramerControl1.Open(openedFileName);
this.axFramerControl1.Titlebar = false;
this.axFramerControl1.Menubar = false;

Here axFramerControl1 is DSOFramer Object.


Thanks & Regards
Venkat.M
 
Hello Venkat,

See sample there http://www.codeproject.com/office/WordInDotnet.asp

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

V> Hi Every body
V>
V> I am using DSOFramer Control To host a Word Document .I am
V> successfull to the document But One Problem i am facing
V>
V> 1) i want to find whether the document has been modified or not for
V> external event like button click.
V> 2) i want to supress the open dialog when i CTRL+Save When word
V> property is set to ReadOnly Recommended.
V> Sample Code :
V> string tempDir = System.IO.Path.GetTempPath();
V> openedFileName = Path.Combine(tempDir, "My_Doc" +
V> DateTime.Now.ToString("MMddyyyy_HHmmss") + ".doc");
V> FileStream tempFile = new FileStream(openedFileName,
V> FileMode.OpenOrCreate, FileAccess.ReadWrite);
V> tempFile.Close();
V> this.axFramerControl1.Open(openedFileName);
V> this.axFramerControl1.Titlebar = false;
V> this.axFramerControl1.Menubar = false;
V> Here axFramerControl1 is DSOFramer Object.
V>
V> Thanks & Regards
V> Venkat.M
 

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

Back
Top