|
-
Dec 2nd, 2004, 07:53 AM
#1
Thread Starter
Fanatic Member
Still not resolved
I have a word template that is opened up by multiple users. the problem is if one user has it open then it says it is locked
Someone suggested using a word template as many users can open it but i realised not at the same time.
What i would like to do is to create an instance of my template, copy that, open it up insert my info and then delete it.
Someone said something about documents.add but i do not understand where to go with this.
Can someone help????????
-
Dec 2nd, 2004, 08:09 AM
#2
Hyperactive Member
I told you to try it.
Is it open the dot?
Try this to see what I am talking about!
Copy your dot to your desktop and double click it. It should open up a doc not the dot.
It should all so open up more then one doc if you double click it again.
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC

-
Dec 2nd, 2004, 08:25 AM
#3
Addicted Member
You know, in Win2003 server you can easely work with a lot of people on the same document, maybe consider using that..
Then you you have no troubles programming..
greetz
nickname
Software Engineer
DBA
Webdesigner
--
to code or to be coded, that's the question
-
Dec 2nd, 2004, 08:26 AM
#4
Thread Starter
Fanatic Member
yea, i know what you are saying. i tried it and yep there is no readonly message
HOWEVER, when someone on the server is opening that .doc, then when another user on another machine wishes to enter info in there i get a read only message, cannot understand why.
Try this out if your on a server. Put a word template on the server, then enter info in there. Leave it open, go to another pc, and try to enter the .doc and you will see what i mean
-
Dec 2nd, 2004, 08:27 AM
#5
Thread Starter
Fanatic Member
lol windows 2003 is not really a good option. The company would have to buy licences, then would have to install it, and this would cause disruption in the short term.
Cheers for the opinion though
-
Dec 2nd, 2004, 08:30 AM
#6
Hyperactive Member
It might be the server your running like nickname said!
Well can download to the local machine?
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC

-
Dec 2nd, 2004, 08:33 AM
#7
Thread Starter
Fanatic Member
is there a procedure in vb were i can download from server to machine and delete it after it has been used???????
I do not particularly go round to everybody and change code just for them. It would be unpractical
-
Dec 2nd, 2004, 08:39 AM
#8
Hyperactive Member
We pre-set machines with the entire VB package so we just make exe and download them to the local machine off the server! There is way to do it, we have a menu control new version getting out to the local machine. Lot of code and we verify on file size and download date.
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC

-
Dec 2nd, 2004, 08:44 AM
#9
Thread Starter
Fanatic Member
My company have never used vb. All there programs were developed in access and have become corrupt. Therefore the only machine that has vb installed is my own and thats it.
Isn't there a simple copy command that says copy from say \\server1\invoice\invoice.doc to c:\ ?????????
-
Dec 2nd, 2004, 08:46 AM
#10
Hyperactive Member
You can use a batch job in dos to copy the dot to local machines.
And vb could do it all so.
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC

-
Dec 2nd, 2004, 08:50 AM
#11
Thread Starter
Fanatic Member
How do i make this work?
It keeps saying object type not defined. am i missing a reference and if yes which one?
-
Dec 2nd, 2004, 08:53 AM
#12
Hyperactive Member
show me the code that it flags
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC

-
Dec 2nd, 2004, 08:54 AM
#13
Thread Starter
Fanatic Member
sorry missed the code
VB Code:
Dim objfso As New FileSystemObject
objfso.CopyFile "D:\Test.txt", "C:\"
-
Dec 2nd, 2004, 08:59 AM
#14
Hyperactive Member
here some code for copy
Code:
If Dir("C:\SCVRTemp\Authorize_Revised") <> "" Then Kill "C:\SCVRTemp\Authorize_Revised" 'If there remove
Kill File_Name
Open "C:\Scvrtemp\Authorize" For Input As #1
Open "C:\Scvrtemp\Authorize_Revised" For Output As #2
While Not EOF(1) Or Floppy_Update_String <> ""
Line Input #1, StrHold
If Mid(StrHold, 74, 12) = Left(Floppy_Update_String, 12) Then
StrHold = Left(StrHold, Len(StrHold) - 1) & "Y"
If Floppy_Update_String <> "" Then
Floppy_Update_String = Right(Floppy_Update_String, Len(Floppy_Update_String) - 12)
End If
End If
Print #2, StrHold
Wend
Close #1
Close #2
FileCopy "C:\SCVRTemp\Authorize_Revised", File_Name
Kill "C:\SCVRTemp\Authorize_Revised"
End Sub
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|