Click here to Skip to main content
15,918,889 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHelp needed Pin
chintuu128-Aug-07 7:47
chintuu128-Aug-07 7:47 
AnswerRe: Help needed Pin
Dave Kreskowiak28-Aug-07 14:36
mveDave Kreskowiak28-Aug-07 14:36 
QuestionWhat is better code? Pin
Cory Kimble28-Aug-07 7:24
Cory Kimble28-Aug-07 7:24 
AnswerRe: What is better code? Pin
DigiOz Multimedia28-Aug-07 8:03
DigiOz Multimedia28-Aug-07 8:03 
GeneralRe: What is better code? Pin
Cory Kimble28-Aug-07 8:33
Cory Kimble28-Aug-07 8:33 
GeneralRe: What is better code? Pin
DigiOz Multimedia28-Aug-07 8:35
DigiOz Multimedia28-Aug-07 8:35 
AnswerRe: What is better code? Pin
Luc Pattyn28-Aug-07 12:42
sitebuilderLuc Pattyn28-Aug-07 12:42 
QuestionProblem saving a word document using DSOFramer ActiveX control Pin
chirantan.sriram28-Aug-07 4:25
chirantan.sriram28-Aug-07 4:25 
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

QuestionProblem with updating database [modified] Pin
Cory Kimble28-Aug-07 3:37
Cory Kimble28-Aug-07 3:37 
AnswerRe: Problem with updating database Pin
Dave Kreskowiak28-Aug-07 14:38
mveDave Kreskowiak28-Aug-07 14:38 
GeneralRe: Problem with updating database Pin
Cory Kimble30-Aug-07 11:04
Cory Kimble30-Aug-07 11:04 
GeneralRe: Problem with updating database Pin
Dave Kreskowiak30-Aug-07 11:44
mveDave Kreskowiak30-Aug-07 11:44 
GeneralRe: Problem with updating database [modified] Pin
Cory Kimble31-Aug-07 3:29
Cory Kimble31-Aug-07 3:29 
GeneralRe: Problem with updating database Pin
Dave Kreskowiak1-Sep-07 4:12
mveDave Kreskowiak1-Sep-07 4:12 
QuestionAPI Pin
balakpn28-Aug-07 3:01
balakpn28-Aug-07 3:01 
AnswerRe: API Pin
Dave Kreskowiak28-Aug-07 14:42
mveDave Kreskowiak28-Aug-07 14:42 
GeneralRe: API Pin
balakpn28-Aug-07 19:18
balakpn28-Aug-07 19:18 
QuestionOleDbCommand.Prepare method requires all variable length parameters to have an explicitly set non-zero Size. Pin
Vimalsoft(Pty) Ltd28-Aug-07 1:48
professionalVimalsoft(Pty) Ltd28-Aug-07 1:48 
AnswerRe: OleDbCommand.Prepare method requires all variable length parameters to have an explicitly set non-zero Size. Pin
Vimalsoft(Pty) Ltd28-Aug-07 5:46
professionalVimalsoft(Pty) Ltd28-Aug-07 5:46 
Question(VB6.0)validating a textbox for MM/dd/yyyy format Pin
venkata lakshmi prasanna28-Aug-07 1:16
venkata lakshmi prasanna28-Aug-07 1:16 
AnswerRe: (VB6.0)validating a textbox for MM/dd/yyyy format Pin
Burnsys228-Aug-07 2:03
Burnsys228-Aug-07 2:03 
QuestionRemote connection to SQL Server Pin
raaman28-Aug-07 1:05
raaman28-Aug-07 1:05 
AnswerRe: Remote connection to SQL Server Pin
originSH28-Aug-07 1:33
originSH28-Aug-07 1:33 
AnswerRe: Remote connection to SQL Server Pin
Burnsys228-Aug-07 2:06
Burnsys228-Aug-07 2:06 
GeneralRe: Remote connection to SQL Server Pin
raaman28-Aug-07 17:15
raaman28-Aug-07 17:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.