Issue Saving Word Files from VB6 if Called From VB.NET

P

Phil Galey

I created an application in VB6 that opens a Word template and saves it to a
word doc file. The VB6 program works fine stand-alone, but if it's called
from a VB.NET application, Word in the VB6 application can't save the file.
It always says the path is invalid, even though I verified that the path is
good. How can I get around this problem and call a VB6 program that uses
Word from a VB.NET program without disabling its ability to save word files?
 
C

Cindy M.

Hi Phil,
I created an application in VB6 that opens a Word template and saves it to a
word doc file. The VB6 program works fine stand-alone, but if it's called
from a VB.NET application, Word in the VB6 application can't save the file.
It always says the path is invalid, even though I verified that the path is
good. How can I get around this problem and call a VB6 program that uses
Word from a VB.NET program without disabling its ability to save word files?
Could you show us the code involved in VB6, please. And the exact wording of
the error message? Which version of Word is involved?

I take it VB.NET is just executing the VB6 *.exe file? Using what method? Or
is it doing something else?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top