Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 28th, 2007, 08:02 AM
Registered User
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem saving a word document using DSOFramer Act

Hi every one,

I am developing a windows application which needs word and visio application to be embedded on to a form. I am using DSOFramer Active-X control to do the above.

My application reads data from the database (a BLOB Field - that contains the word or visio document) and creates a temporary file in the local directory and then opens that file using DSOFramer control. (http://support.microsoft.com/kb/311765)


All the manipulations are stored on the same temporary file and update the file contents on to that database (as BLOB).

It works fine most of the time but some times while saving the word document it through an exception - "the target of an invocation"

Inner Exception -System.Runtime.InteropServices.COMException (0x80030021): A lock violation has occurred.

This exception occurs while saving the document.

There is an even provided by DSOFramer control – ‘OnSaveCompleted’ which occurs on save completion.

After the file saved, I am opening the temporary file using IO.FileStream and reading the contents to byte() and updating the database with new binary data(BLOB Field)

I hope this explains wat I am trying to do.

Please could any one tell me where I am going wrong.

Thanks in advance

chirantan





Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving a document on local computer h2c357 Javascript 0 May 3rd, 2007 09:14 AM
Regarding saving the document Hari_Word Excel VBA 1 October 29th, 2004 10:49 AM
problem in word document converts to html or aspx yoord BOOK: Beginning ASP.NET 1.0 0 October 11th, 2004 06:08 AM
saving word document in server asp sdeep_us Classic ASP Basics 1 August 7th, 2004 10:30 PM
SAVING AUTOMERGED DOCUMENT ACCESS mandeep4me Access VBA 1 June 28th, 2003 04:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.