msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ole Simple Problem(x2)? (VB/Word)

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE
Author Message
Josh



Joined: 04 Oct 2007
Posts: 1

PostPosted: Wed Jul 07, 2004 2:02 am    Post subject: Ole Simple Problem(x2)? (VB/Word) Reply with quote

I have an Ole Object in a vb6 form (class = Word.Document.Cool
I load the form calling the following: (this loads the word file into
the ole object for display)
Ole.SourceDoc = "here goes the file source"
Ole.Action = acOLECreateLink
Then, I have a button called save that runs the following code:
ActiveDocument.SaveAs FileName:="here goes the file name"

This works fine, at least the first time I save a document, but if I
try to save a second time then it gives the following error:
The remote server machine does not exist or is unavailable (Error
462)

The knowledgebase and my Internet browsing has run into several people
asking similar questions, but I couldn't get any answer that actually
could solve this simple problem...

My second problem seems even simpler but I couldn't find any resources
to solve it:
When you double click the ole object in order to activate the word
document for editing, it opens some kind of word selection rectangle,
but it doesn't fit into the ole object box, is there a way of
manipulating this selection frame to fit the pre-defined boundary of
the ole obeject?

Anybody has an idea or knows the answer to any of these problems???
Please let me know.

Thanks a lot for your time,

Josh

Archived from group: microsoft>public>vb>ole
Back to top
View user's profile Send private message
Chuck



Joined: 04 Oct 2007
Posts: 2

PostPosted: Wed Sep 29, 2004 3:19 pm    Post subject: RE: Ole Simple Problem(x2)? (VB/Word) Reply with quote

Hi Josh,

I have encountered the same problem and am also looking for an answer. One
of the things that has reduced this incident is making sure that I close all
my documents and I exit the WordApp - also setting them to nothing helped a
little... Also, someone will give us a better answer.

Chuck

"Josh" wrote:

> I have an Ole Object in a vb6 form (class = Word.Document.Cool
> I load the form calling the following: (this loads the word file into
> the ole object for display)
> Ole.SourceDoc = "here goes the file source"
> Ole.Action = acOLECreateLink
> Then, I have a button called save that runs the following code:
> ActiveDocument.SaveAs FileName:="here goes the file name"
>
> This works fine, at least the first time I save a document, but if I
> try to save a second time then it gives the following error:
> The remote server machine does not exist or is unavailable (Error
> 462)
>
> The knowledgebase and my Internet browsing has run into several people
> asking similar questions, but I couldn't get any answer that actually
> could solve this simple problem...
>
> My second problem seems even simpler but I couldn't find any resources
> to solve it:
> When you double click the ole object in order to activate the word
> document for editing, it opens some kind of word selection rectangle,
> but it doesn't fit into the ole object box, is there a way of
> manipulating this selection frame to fit the pre-defined boundary of
> the ole obeject?
>
> Anybody has an idea or knows the answer to any of these problems???
> Please let me know.
>
> Thanks a lot for your time,
>
> Josh
>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group