Printing in File ?
I am ouputing the report to a file by :
Set device to file.txt
? "Hello" font "Arial",11
?? "Ever" font "Courier new",12
Set device to screen
But the Specied Font are not outputing. Its Showing all default font. What
should i do for outputing the report to a file, and it should display the
font i choose. my aim to generate this kind of file is that i can copy it
to a floppy and distribute to someone, so he could view it.
Thanks
[492 byte] By [
Sagar] at [2007-11-10 12:50:26]

# 1 Re: Printing in File ?
Sagar,
I'm curious why you think this is a valid syntax? (Can you provide a =
topic or link to any FoxPro help file with this syntax?) Text files by =
definition have no font information - you need a speciallized format =
like Rich Text, HTML or Word to handle fonts (of course there are many =
more possibilities, but these three come immediately to mind).
Can you use the Report designer?
Rick
"Sagar" <sagars_r@rediffmail.com> wrote in message =
news:3f25ef2c$1@tnews.web.dev-archive.com...
>=20
> I am ouputing the report to a file by :
>=20
> Set device to file.txt
>=20
> ? "Hello" font "Arial",11
> ?? "Ever" font "Courier new",12
>=20
> Set device to screen
>=20
>=20
> But the Specied Font are not outputing. Its Showing all default font. =
What
> should i do for outputing the report to a file, and it should display =
the
> font i choose. my aim to generate this kind of file is that i can copy =
it
> to a floppy and distribute to someone, so he could view it.
>=20
> Thanks
# 2 Re: Printing in File ?
On Tue, 29 Jul 2003 08:57:32 -0400, "Rick Bean"
<rgbean@NOSPAMmelange-inc.com> wrote:
>Sagar,
>I'm curious why you think this is a valid syntax? (Can you provide a topic or link to any FoxPro help file with this syntax?)
FWIW, ? and ?? do support FONT clauses. I can't remember when that was
added.
But, as you point out, it won't work with a text file, only to the
screen or, perhaps, a printer.
Tamar
# 3 Re: Printing in File ?
Tamar,
I stand (partially) corrected - I guess my memory is really shot. I even =
found it back in the FPD 2.5b help file! <s>
Sagar,
I apologize for questioning your syntax.
Rick
=20
<Tamar E. Granor> wrote in message =
news:7pucivktqknp82v3spf3q6n1c4eii3p3qk@4ax.com...
> On Tue, 29 Jul 2003 08:57:32 -0400, "Rick Bean"
> <rgbean@NOSPAMmelange-inc.com> wrote:
>=20
> >Sagar,
> >I'm curious why you think this is a valid syntax? (Can you provide a =
topic or link to any FoxPro help file with this syntax?)=20
>=20
> FWIW, ? and ?? do support FONT clauses. I can't remember when that was
> added.
>=20
> But, as you point out, it won't work with a text file, only to the
> screen or, perhaps, a printer.
>=20
> Tamar
# 4 Re: Printing in File ?
Hi Rick,
Thanks for your suggestion for using rich text,html or word. But how can
i output my report to this formats. please Help.
Sagar
"Rick Bean" <rgbean@NOSPAMmelange-inc.com> wrote:
>Sagar,
>I'm curious why you think this is a valid syntax? (Can you provide a =
>topic or link to any FoxPro help file with this syntax?) Text files by =
>definition have no font information - you need a speciallized format =
>like Rich Text, HTML or Word to handle fonts (of course there are many =
>more possibilities, but these three come immediately to mind).
>
>Can you use the Report designer?
>
>Rick
>
>"Sagar" <sagars_r@rediffmail.com> wrote in message =
>news:3f25ef2c$1@tnews.web.dev-archive.com...
>>=20
>> I am ouputing the report to a file by :
>>=20
>> Set device to file.txt
>>=20
>> ? "Hello" font "Arial",11
>> ?? "Ever" font "Courier new",12
>>=20
>> Set device to screen
>>=20
>>=20
>> But the Specied Font are not outputing. Its Showing all default font.
=
>What
>> should i do for outputing the report to a file, and it should display
=
>the
>> font i choose. my aim to generate this kind of file is that i can copy
=
>it
>> to a floppy and distribute to someone, so he could view it.
>>=20
>> Thanks
Sagar at 2007-11-11 23:53:38 >

# 5 Re: Printing in File ?
Sagar,
If you want to do it "manually", then one of multiple "text merge" =
techniques could be used to generate RTF or HTML files. For Word, you =
could use Automation. (There have been many examples posted - do a =
Google search. There are also lots of good ideas in the Office =
Automation book by Tamar Granor - available at =
http://www.hentzenwerke.com/catalogpricelists/autofox.htm - there are =
even some sample chapters to download.)
Alternately, if you use the report designer, there are a number of =
freeware, shareware and commercial products that can successfully hook =
into or post process the output file. Check the UT =
(http://www.universalthread.com/) for FRX2ANY, FRX2WORD, etc. Also check =
out Rich Simpson's MindEye product - =
http://www.mindseyeinc.com/ReportEngine/index.htm. It was also featured =
in the May issue of FoxTalk (http://www.pinpub.com/FT).
You could also use Crystal Reports (or another report writer) to output =
the reports in another format.=20
Rick
"Sagar" <sagars_r@rediffmail.com> wrote in message =
news:3f28a117$1@tnews.web.dev-archive.com...
>=20
> Hi Rick,
> Thanks for your suggestion for using rich text,html or word. But how =
can
> i output my report to this formats. please Help.
> Sagar
>=20
> "Rick Bean" <rgbean@NOSPAMmelange-inc.com> wrote:
> >Sagar,
> >I'm curious why you think this is a valid syntax? (Can you provide a =
=3D
> >topic or link to any FoxPro help file with this syntax?) Text files =
by =3D
> >definition have no font information - you need a speciallized format =
=3D
> >like Rich Text, HTML or Word to handle fonts (of course there are =
many =3D
> >more possibilities, but these three come immediately to mind).
> >
> >Can you use the Report designer?
> >
> >Rick
> >
> >"Sagar" <sagars_r@rediffmail.com> wrote in message =3D
> >news:3f25ef2c$1@tnews.web.dev-archive.com...
> >>=3D20
> >> I am ouputing the report to a file by :
> >>=3D20
> >> Set device to file.txt
> >>=3D20
> >> ? "Hello" font "Arial",11
> >> ?? "Ever" font "Courier new",12
> >>=3D20
> >> Set device to screen
> >>=3D20
> >>=3D20
> >> But the Specied Font are not outputing. Its Showing all default =
font.
> =3D
> >What
> >> should i do for outputing the report to a file, and it should =
display
> =3D
> >the
> >> font i choose. my aim to generate this kind of file is that i can =
copy
> =3D
> >it
> >> to a floppy and distribute to someone, so he could view it.
> >>=3D20
> >> Thanks
>
