Subject: RE: INCLUDEPICTURE and JADE From: Avi Kivity <Avi@xxxxxxxxxxxxx> Date: Sat, 9 Jan 1999 22:28:24 +0200 |
On Saturday, January 09, 1999 10:51, ter@xxxxxxxxx [SMTP:ter@xxxxxxxxx] wrote: > Hello, > > I am having problems displaying RTF files generated by JADE using > Microsoft Word Viewer 97. It seems like the Word Viewer 97 does not > act > on the INCLUDEPICTURE property which JADE uses to reference graphics > in > the RTF file. The only way I can get a graphic to show in the viewer > is > to open the RTF file in MS Word and save the RTF file with graphics > embedded in the RTF file. The following perl script should do the trick. It converts .rtf files to Word 8.0 .doc, embedding any referenced graphics in the process. Execute as 'word-update-all.pl *.rtf' or something similar. #! /usr/bin/perl # $Header: /Web/Scripts/publish/word-update-all.pl 6 26-10-98 12:29 Avi $ use OLE; use Cwd; print "Updating: "; $Word = CreateObject OLE "Word.Application.8" or die "Can't open Word"; #$Word->{Visible} = 1; for (@ARGV) { next if /^~\$/; my $src = cwd() . "\\" . $_; $Doc = $Word->Documents->Open ( $src ); print " $src"; $Doc->Repaginate(); print " (", $Doc->Fields()->Update(), $Doc->Fields()->Unlink(), ")"; my $tgt = "$src" . ".doc"; $Doc->SaveAs($tgt, 0); $Doc->Close(); } $Word->Quit(); print " done.\n"; --------------------- Year 2000 Statement: "9. Deinde, ne in posterum a XII kalendas aprilis aequinoctium recedat, statuimus bissextum quarto quoque anno (uti mos est) continuari debere, praeterquam in centesimis annis; qui, quamvis bissextiles antea semper fuerint, qualem etiam esse volumus annum MDC, post eum tamen qui deinceps consequentur centesimi non omnes bissextiles sint, sed in quadringentis quibusque annis primi quique tres centesimi sine bissexto transigantur, quartus vero quisque centesimus bissextilis sit, ita ut annus MDCC, MDCCC, MDCCCC bissextiles non sint. Anno vero MM, more consueto dies bissextus intercaletur, februario dies XXIX continente, idemque ordo intermittendi intercalandique bissextum diem in quadringentis quibusque annis perpetuo conservetur." - Pope Gregory DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
INCLUDEPICTURE and JADE, ter | Thread | Re: Problem with Japonese language, Kar Yan Ng |
INCLUDEPICTURE and JADE, ter | Date | Re: Problem with Japonese language, Kar Yan Ng |
Month |