English
Forum

Start Winword with Parameter Passing - (How) does it ?

 
- Page 1 -



CB
Hi,

another question on The Specialists:
gives it a Possibility, Winword a Profan-Program out with Übergabe one Parameters to start?

Folgender term: my Program collecting a crowd data a Patienten and places these in a INI-File ex, The with of/ one number (of Ordinationsprogramm pretended) benannt becomes. The File is means zB 1234.ini. the would too at the same time the only Parameter, whom I Word - and so one AutoNew-macro transfer would like.
this reads then The INI from and setting automatically The ausgelesenen values into suitable boxes one.
goes the at all in this shape or must I as a detour dial?
Word can I through Switches moreover join, one new document on Base of/ one designed Presentation to open (/tVORLAGE.DOT) and a
designed macro to execute (/mMAKRONAME), mere over additional Startparameter could I weder into diversen Word-Aids yet Internet what Brauchbares find.

Christian
 
XProfan 8/9.1, Win XP, AMD 64/3200
12/18/04  
 



 
- Page 5 -



Uwe
''Pascal''
Niemeier
Hello Christian!

Hmmm...
As I said, with Word and which Macros know I not from. If the RTF-Kram you help can, say simply, what You need what about me will be bad, whether I something suitable find.
with the recent Demos would it In any drop already time possible, from different Schnipseln one RTF-document zusammenzusetzen.
I had too something over Scraps (Dokumentenauszüge), but I find not again

[quote:7f3406f511]
Please look too time in a others thread: Program-competition
I hope but, you become me thereafter not steinigen: there have I u.a. suggested, that You as Hauptpreis a your genialen Torten fabrizieren could....
[/quote:7f3406f511]
would be not the first time... almost would Rolf then with from the Partie been, but he had whom train missed.
Apropos Rolf: if it it by then not rather goes, cheek I it ne Special Edition -
flavour Hustensaft/Menthol...

SeeYou
Pascal
 
02/04/05  
 




CB
Hi, Pascal!

my Leitspruch who for everything open is, can't integrally solid his - I gebs To: I be for everything open - can means ... ~~ !
but: who always only The ausgetretenen Paths goes, becomes never new territory see!

I had with rtf no trouble! Word-Makros were and are for me only one middle to that object.
me GEHTS in first line around the Formatierung, The is in rtf given. Formularfelder go into rtf just as. If so a direct Übergabe of Texten and Graphics from To profane Word possible would, without Word first umständlich started, then a macro perform, the The data again hereinholt, the whole under one new names Save and Word again close To must, then throw I this Garbage immediate over board!
what I namely with of my method never integrally exclude can: what happens, if one in the background current Program bockt or itself in the decisive momentum important power what about me mail The SendMessage woandershin...
faith me, I would even heilfroh and irrsinnig grateful, if You me as a gangbaren lane show could - I go very gladly ways, where otherwise yet none was!

only to explanation - because of Makros:
The benefit is, that simple Makros self transcribed and b.B. uses go can, without itself around the code concern To must. I have there time one integrally simples example:

on the Textmarke date should the actually date eingefügt go:
Word 97 up (VisualBasic):
CompileMarkSeparation
and to that comparison Word 95 (WordBasic):
CompileMarkSeparation
WordBasic was in the german Version one babylonisches Languages-Mischmasch (time dt., time engl. command), otherwise quite pure Basic.
then have I me one book to macro-Programming bought, because I with the record quick on unüberwindbare border punched be. in the Grunde Gibts but a crowd Ähnlichkeiten to that Profan-code, in WordBasic heißts hold
MsgBox(...,...,16) and If...Then,
for need I not circa variables-Deklarationen concern (in VB already) VB likes I but simply not, is me To umständlich. look you time the example on: 2 Lines To .... for 2 simple command! and instead of clear auszudrücken, what one wants, must one communicating, what everything not wants. If I so a pizza order would or quite in a China-Lestaulant ....

Greeting, Christian
 
XProfan 8/9.1, Win XP, AMD 64/3200
02/04/05  
 



 
- Page 6 -



CB
Nochn kurzes medizinisches Statement:
find I integrally moving, your tender for Rolf, but Menthol Please not innerlich utilize, not only, because one then yet days trouble stink would as one polecat, would for Geschmackspapillen and the Magenschleimhaut not really ideal.
but Hustensaft instead of sugars - sound interestingly
(wants Yes no advertise, but Sanostol have I as kid passionately gladly had...)

mandatory me in a point yet correct (straight probiert): In rtf weg of course boxes, too geschützter Formularmodus, but no boxes with Mehrfachauswahlen. the would for me but not so important How the others!

Greeting, Christian
 
XProfan 8/9.1, Win XP, AMD 64/3200
02/04/05  
 




Rolf
Koch
[quote:8ca628f838]
would be not the first time... almost would Rolf then with from the Partie been, but he had whom train missed.
Apropos Rolf: if it it by then not rather goes, cheek I it ne Special Edition -
flavour Hustensaft/Menthol...
[/quote:8ca628f838]
Coool, that You even yet points, why I not Berlin arrived. Yes schrecklicher day.
Well The way hold

Hmm, yummy, freu me already on The HUSMENT Torte

Rolf
 
02/04/05  
 




Uwe
''Pascal''
Niemeier
Hello people!


Nochn kurzes medizinisches Statement:
find I integrally moving, your tender for Rolf, but Menthol Please not innerlich utilize,


the would the klassische two in one-principle: The Hustensaft-part to that food, the Menthol-part to that einreiben...
the I will then but fotografieren!!

yet what about: Word supported indeed Scraps; the are so too Dokumentenschnipsel. These (or others Files) could itself möglicherweise   by a simulierte Drag&Drop-action in that Word-Window transfer let.
And if we already with new territory  are: Neuere Word-versions are still too HTML-capable...

will be me the again To Gemüte lead, if I again [s]cool[/s] äh.. of my Karnevalsausflug back be!

SeeYou
Pascal
 
02/05/05  
 




Rolf
Koch
Hi Pascal,

Karnelval? > 32278 ??? LOL


shrovetide carnival > 56220 (look you time my postcode on, How near the with Cologne the Hochburg lying )

Helau and Alaf

Rolf
 
02/05/05  
 




CB
Hi(cks), Pascal!

The Torte takes - to my geistigen eye - already form on. and there should another say, we're not creative on the way...

About Scraps white I unfortunately not enough message. me has mere time someone something like to that look at given and the was then not plenty More as one Link to a not vorhandenen File.

Profan2HTML - the would fully genial - even typical Pascal!
In this case lay I The Graphics as Files fix into Unterverzeichnis and the html fetch the each benötigte(n). (In my Program Gibts one Setup, where u.a. The required Paths tuned go, the need one only More the html communicating)
or can The html Perhaps even on The Ressourcen of my DLL grab?

Durchs talk come The people together - for Gibts Yes the community!
what means your - make we for this proposition a new thread on?

Sincerely,
Christian
 
XProfan 8/9.1, Win XP, AMD 64/3200
02/05/05  
 




Uwe
''Pascal''
Niemeier
Hello people!

@Rolf:
[quote:7915b93b0d]Karnelval? > 32278 ??? LOL
shrovetide carnival > 56220 (look you time my postcode on, How near the with Cologne the Hochburg lying ) [/quote:7915b93b0d]
You believe still not, that I here on tour go, where me eachone knows (at least afterwards... )
but if You today evening to place (Cologne) are and you runs someone over the lane, the looks as an mixture from Dieter Bohlen and McGyver...

@ Christian:
Scraps kriegst You, if You what markiertes from the Word-Window into Explorer or on the Desktop ziehst.
But if You on HTML umschwenken want, would to a new Thread integrally well.

could me but not verkneifen, already time an example To pack, weils straight so well fit...
(The Files must but under C:/WebTest To lying come because of the Paths)

SeeYou
Pascal

41 kB
Hochgeladen:02/05/05
Downloadcounter119
Download
 
02/05/05  
 




CB
Hi, Pascal!

what I always say: Pascal is genial! the eröffnet me (us) integrally, integrally new ways - SUUUPEER!!

and the small Jägermeister is sweetly! your?
I had Yes gladly too so NEN Zimmertiger, be but unfortunately allergic on Katzen.
If I do not wüßte, How very You Katzen liebst, had I already time a (something boshaften) Katzenwitz skillful. allow Dus? one darfs hold not serious take and only try, itself the figurative vorzustellen...were time, I have there yet a not boshaften, whom mail I you same with. hopefully steinigt me now none, because I there time sooo of Topic abschweife!
CompileMarkSeparation
Tip für die Hausfrau: Da spricht eindeutig die Erfahrung .........
WIE VERABREICHT MAN EINER KATZE EINE PILLE?
1.	Nehmen Sie die Katze in die Beuge Ihres linken Armes, so als ob Sie ein Baby halten.
Legen Sie den rechten Daumen und Mittelfinger an beiden Seiten des Mäulchens an und üben Sie sanften Druck aus, bis die Katze es öffnet. Schieben Sie die Pille hinein und lassen Sie die Katze das Mäulchen schließen.
2.	Sammeln Sie die Pille vom Boden auf und holen Sie die Katze hinterm Sofa vor.
Nehmen Sie sie wieder auf den Arm und wiederholen Sie den Vorgang.
3.	Holen Sie die Katze aus dem Schlafzimmer und schmeißen Sie die angesabberte Pille weg.
4.	Nehmen Sie eine neue Pille aus der Verpackung, die Katze erneut auf den Arm und halten Sie die Tatzen mit der linken Hand fest. Zwingen Sie den Kiefer auf und schieben Sie die Pille in den hinteren Bereich des Mäulchens. Schließen Sie es und zählen Sie bis 10.
5.	Angeln Sie die Pille aus dem Goldfischglas und die Katze von der Garderobe. Rufen Sie Ihren Mann aus dem Garten.
6.	Knien Sie sich auf den Boden und klemmen Sie die Katze zwischen die Knie. Halten Sie die Vorderpfoten fest.
Ignorieren Sie das Knurren der Katze.
Bitten Sie Ihren Mann, den Kopf der Katze festzuhalten und ihr ein Holzlineal in den Hals zu schieben.
Lassen Sie die Pille das Lineal runterkullern und reiben Sie anschließend den Katzenhals.
7.	Pflücken Sie die Katze aus dem Vorhang.  Nehmen Sie eine neue Pille aus der Packung.
Notieren Sie sich, ein neues Lineal zu kaufen und den Vorhang zu flicken.
8.	Wickeln Sie die Katze in ein großes Handtuch.
Drapieren Sie die Pille in das Endstück eines Strohhalmes. Bitten Sie Ihren Mann, die Katze in den Schwitzkasten zu nehmen, so daß lediglich der Kopf durch die Ellenbogenbeuge guckt. Hebeln sie das Katzenmäulchen mit Hilfe eines Kugelschreibers auf und pusten Sie die Pille in ihren Hals.
9.	Überprüfen Sie die Packungsbeilage, um sicher zu gehen, daß die Pille für Menschen harmlos ist.
Trinken Sie ein Glas Wasser, um den Geschmack loszuwerden.
Verbinden Sie den Arm Ihres Mannes und entfernen Sie das Blut aus dem Teppich mit kaltem Wasser und Seife.
10.	Holen Sie die Katze aus dem Gartenhäuschen des Nachbarn. Nehmen Sie eine neue Pille. Stecken Sie die Katze in einen Schrank und schließen Sie die Tür in Höhe des Nackens, so daß der Kopf herausschaut. Hebeln Sie das Mäulchen mit einem Dessert-Löffel auf. Flitschen Sie die Pille mit einem Gummiband in den Rachen.
11.	Holen Sie einen Schraubenzieher aus der Garage und hängen Sie die Tür zurück in die Angeln.
Legen Sie kalte Kompressen auf Ihr Gesicht und überprüfen Sie das Datum Ihrer letzten Tetanusimpfung.
Werfen Sie Ihr blutgesprenkeltes T-Shirt weg und holen Sie ein neues aus dem Schlafzimmer.
12.	Lassen Sie die Feuerwehr die Katze aus dem Baum auf der gegenüberliegenden Straße holen.
Entschuldigen Sie sich beim Nachbarn, der in den Zaun gefahren ist, um der Katze auszuweichen.
Nehmen Sie die letzte Pille aus der Packung.
13.	Binden Sie die Vorder- und Hinterpfoten der Katze mit Wäscheleine zusammen.
Knüpfen Sie sie an die Beine des Esstisches. Ziehen Sie sich Gartenhandschuhe über, öffnen Sie das Mäulchen mit Hilfe eines Brecheisens. Stopfen Sie die Pille hinein, gefolgt von einem großen Stück Filetsteak.
Halten Sie den Kopf der Katze senkrecht und schütten sie Wasser hinterher, um die Pille herunter zu spülen.
14.	Lassen Sie sich von Ihrem Mann ins Krankenhaus fahren.
Sitzen Sie still, während der Arzt Finger und Arm näht und Ihnen die Pille aus dem rechten Auge entfernt.
Halten Sie auf dem Rückweg am Möbelhaus und bestellen Sie einen neuen table.

hint 15 have I you zuliebe omitted..

Sincerely,
Christian
 
XProfan 8/9.1, Win XP, AMD 64/3200
02/05/05  
 




Uwe
''Pascal''
Niemeier
Hello Christian!



SeeYou
Pascal
 
02/07/05  
 




Andreas
Schnitzler
Hello together,
stand straight to of/ one integrally ähnlichen task.

my Solution: no Makros u.ä. Schnickschnack, separate Word-document (Presentation) as "RTF" abspeichern (Result: pure Textdatei), lowlevel (as string) reading, Placeholder* programmatisch supplant, finished Text lowlevel with ".DOC"-Endung Save, ready.

*) Placeholder should no Umlaute or. Sonderzeichen include, otherwise wird's komplex. Eingesetzte Umlaute go against it free from problems processing (WW 2007). Textersetzung should discretionary long his can.

s.a.: phpbar.de/w/Word_RTF_dynamisch_erstellen

AUSZUG (php-source; to Verdeutlichung slight modifiziert):
2 * Word-document (RTF, but as .DOC kaschiert) set up
5 // Presentation with Platzhaltern: *tagesdatum*, *qanrede1* etc. open
6 $letter = file_get_contents('my_template.RTF');
11 $letter = str_replace('*tagesdatum*', strftime("%d.%m.%Y"), $letter);
19 $letter = str_replace('*qanrede1*', $qanrede1, $letter); ...
29 // Save file (with Endung .DOC)
30 $file_name = 'my_ergebnis.doc';
31 $fp = fopen('tmp/' . $file_name, 'w');
36 fputs($fp, $letter);
37 fclose($fp);

but THANK YOU the Community for many suggestions!
 
02/17/15  
 



Hi!

hint: there You file_get_contents uses... You can also file_put_contents benefit!

having 2003 something like time but with Openoffice-SXW-Files made,
with SXW are The Placeholder in Klartext.

PS: The Link in Your Posting lead imho on a Leerseite.
 
02/17/15  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

32.124 Views

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie