[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: easy way to print from xywrite
- Subject: Re: easy way to print from xywrite
- From: Harry Binswanger hb@xxxxxxxx
- Date: Sun, 18 Jan 2009 17:43:47 -0800
Andy wrote:
For what it's worth, I've found an easy way to print from XYwrite. I
format in Xywrite, print to screen, then call up print.tmp in word or open
office writer. Still some jiggling to do -- getting codes out -- but a lot
easier than formatting in word.
I don't understand why you don't print directly from XyWrite. Leaving that
aside, if you want to bring Word into the picture, try the old program by,
IIRC,Tim Baehr, that uses the Word-4-Word filter to take any Xy file and
plop it into Word as an RTF file.
Here it is:
XPLeNCODE v2.0
b-gin [UNTITLED]
{<}GL_Start{>}[cr|lf][cr|lf]{<}LB_Start{>};*;[cr|lf];*;[cr|lf
];*;If file not on screen, exit with message[cr|lf]{<}IF{<}VA
$WS{>}==1{>}{<}GL_GO!{>}[cr|lf]{<}EI{>}{<}PRYou must have a f
ile open.{>}{<}GL_Exit{>}[cr|lf];*;[cr|lf];*;If file is [UNTI
TLED], set a flag in S/G 24; then remember cursor location, s
elect the whole thing, and save the selection; then restore c
ursor location.[cr|lf]{<}LB_GO!{>}{<}SV24,{>}{<}IF({<}VA$FI{>
}=={<}VA\264{>})&({<}VA$DF{>}<>1){>}{<}SV24,1{>}{<}SX25,{<}CP
{>}{>}[XD_][DX_][TF_][DF_][BF_][DF_][BX_]jmp {<}PV25{>}[Q2_][
DO_][FF_]{<}EI{>};*;[cr|lf];*;[cr|lf];*;Get filter filename a
nd switch. (20=filter; 21=switch)[cr|lf]{<}SV20,w4w19t{>}{<}S
V21,/V1{>};*;[cr|lf];*;[cr|lf];*;Set variables for temp file{032}
location (DR) and filter filename location (WW). Check to se
e if text is selected. If it is, set variable 01 for saving{032}
just the selected text.[cr|lf]{<}SX60,{<}VADR{>}{>}{<}SX61,{<
}VAWW{>}{>}{<}IF{<}VA$DF{>}==1{>}{<}SV01,s{>}{<}EI{>};*;[cr|l
f];*;[cr|lf];*;Set output filename. If you change this, be s
ure to use DOC extension.[cr|lf]{<}SX22,{<}IS60{>}+"-TEMP.doc
"{>};*;[cr|lf];*;[cr|lf];*;Save file or selected text to temp
file.[cr|lf][BX_]sa{<}PV01{>}/nv {<}PV60{>}w4wtmp.tmp[Q2_];*
;[cr|lf];*;[cr|lf];*;Do first pass, converting temp file to i
ntermediate format.[cr|lf][BX_]do/nv/x {<}PV61{>}w4w17f.exe {
<}PV60{>}w4wtmp.tmp /N /V2[Q2_];*;[cr|lf];*;[cr|lf];*;Do seco
nd pass, converting intermediate format to output file.[cr|lf
][BX_]do/nv/x {<}PV61{>}{<}PV20{>} {<}PV22{>} /N {<}PV21{>}[Q
2_];*;[cr|lf];*;[cr|lf];*;Delete the temp file.[cr|lf][BX_]de
l/nv {<}PV60{>}w4wtmp.tmp[Q2_];*;[cr|lf];*;[cr|lf];*;Report o
n the obvious[cr|lf]{<}PRFile saved to @22{>};*;[cr|lf];*;[cr
|lf];*;Go to DOS, invoke Word. At this point, you can edit t
he file, save it to another name, fax it, etc. You may need{032}
to edit th
is line to point to the actual location of the WINWORD.EXE fi
le on your computer. [cr|lf][BX_]dos/nv/x/z /c C:\PROGRA~1\M
ICROS~2\OFFICE11\WINWORD.EXE {<}PV22{>}[Q2_];*;[cr|lf];*;[cr|
lf];*;After Word executes, temp file is deleted and selection
in untitled file is released. The pause is to let Word do i
ts thing before the deletion takes place.[cr|lf][BX_]p 3[Q2_]
[BX_]ernv {<}PV22{>}[Q2_]{<}IF{<}IS24{>}=="1"{>}[XD_]{<}EI{>}
{<}PRDone. RTF temp file deleted.{>}{<}GL_Exit{>}[cr|lf][cr|l
f]{<}LB_Exit{>};*;[cr|lf]{<}EX{>}[cr|lf]
-nd
XPLeNCODE
Harry Binswanger
hb@xxxxxxxx