Re: Ping the VB (or something) gurus.
- From: Pete Fisher <Peter@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 16 Apr 2009 13:37:00 +0100
In message <74olpcF14c5fkU1@xxxxxxxxxxxxxxxxxx>, Krusty <dontwantany@xxxxxxxxxxxxxxx> writes
I've downloaded the source code for a small freebie ActiveX thingy
which does a mailmerge in Word using an XML file. It uses a form to let
you enter the XML & .dot file names & locations, & a button to make it
work its magic. It then creates a separate Word doccie for each record
in the XML.
I need it modified to take the filenames as command line input
parameters & run automatically without opening the form. Ideally I'd
like a third input parameter to give the option of merging to a single
document with a separate page for each record, like a traditional merge
in Word. I.e. I want to be able to do:
xml2word.exe C:\data\mysourcexml.xml C:\templates\mysourcetemplate.dot
single|multi
& it go off & do its stuff without any further input.
Anyone fancy having a look to see if it's possible?
Can't see why not bearing in mind this if you are definitely talking VB:
"Unlike C and C++, where Command Line Arguments are passed as an array of values to the executable program, in Visual Basic whatever follows the name of the executable program in the Run Window is passed as a single String value. What that means is that it's possible to pass more than one Command Line Argument, but 'parsing' (separating) the arguments is your responsibility---Visual Basic will not do it for you."
Civica do something similar with their 'Wordtool', but use .ini and .cfg files read at runtime to stipulate the parameters.
--
+-----------------------------------------------------------------+
| Pete Fisher at Home: Peter@xxxxxxxxxxxxxxxxxxxxx |
| Visit my Home Page : http://www.flarefox.com/Lesbordes |
| "Do not adjust your mind - there is a fault in the reality" |
+-----------------------------------------------------------------+
.
- Prev by Date: Re: Clement Freud down
- Next by Date: Re: Stavros Flatly
- Previous by thread: Clement Freud down
- Next by thread: Re: Ping the VB (or something) gurus.
- Index(es):
Relevant Pages
|