English
Forum

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

integrally simple alternative...

 

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

my Solution: no Makros u.ä. Schnickschack, 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 Better get going komplex. Eingesetzte Umlaute go against it free from problems processing (WW 2007). Textersetzung should discretionary long his can.

s.a.:  [...] 

AUSZUG (php-source):
2 * Word-document (RTF, but as .DOC kaschiert) set up
5 // Template open
6 $letter = file_get_contents('my_template.doc.php');
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_template.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

3.480 Views

Untitledvor 0 min.
kustg05/14/19
iF02/10/16
Peter Max Müller04/03/15
Magda03/11/15
More...

Themeninformationen

this Topic has 2 subscriber:

iF (1x)
Andreas Schnitzler (1x)


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