Information générale
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
thanks for the response. i'll give it a try within the next hour. however, if i have more than 1 word document open at a time, how do i determine which is the "activedocument" that is being saved? FYI, the activedocument saveas works with xp, but i only use that when i only have 1 active document.
update - using saveas(addbs(current_directory)+...) still gives the same error (server threw an exception). any ideas?
update part 2 - when i get the above error, if i click suspend and then run the same "saveas" line again (ie hit f8 in debugger), the command works without error. Very weird. Then, when it goes to the next line which is saving the other document, i get the "data type mismatch error" and then word closes and asks if i want to send the error message to MS. I am at a loss, but given my limited knowledge, perhaps the program that i'm using is dependent on a windows service that is not running when the first time the saveas command runs but then starts and it works the second time. This maybe ludicrous, but I'm just brainstorming here.
final update - i decided to simply go with the activedocument.saveas and just see which document in word is active when the code is run. it's a workaround, but i've got better things to do than trying to solve things like this if i can get it to work another way.
paul
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement