Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxpro-server threw an exception error in xp, not 2000
Message
From
23/04/2005 15:16:48
 
 
To
23/04/2005 12:23:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01007796
Message ID:
01007820
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform