Hi,

Is the use of ??? the same as
set device to printer
@x,y
set device to screen

the documentation of @x,y doesn't say much.
and i want to us it for plain text printing

kind regards
christophe

Re: ??? and @x,y by RandyBosma

RandyBosma
Wed Apr 16 10:47:23 CDT 2008

What version of FoxPro are you using?

In older versions ??? sends the character expression directly to the printer
without incrementing the printer column or row; it was most often used to
send control codes for bolding, line spacing, or other such non-printing
control information. You then end up with the program being customized for
one model of printer.

When the user changes printer, you have to modify the program to accomodate
the new printer. Much better would be to learn the use of FoxPro's built-in
report writer.

HTH,
Randy

christophe wrote:
>Hi,
>
>Is the use of ??? the same as
>set device to printer
>@x,y
>set device to screen
>
>the documentation of @x,y doesn't say much.
>and i want to us it for plain text printing
>
>kind regards
>christophe

--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200804/1


Re: ??? and @x,y by christophe

christophe
Wed Apr 16 16:14:54 CDT 2008

hi,

thanks so far.
I use vfp9 sp2
I need to print to a printer port under TerminalServer (windows server 2003
and SBS)
without printer drivers.
(There are no printer drivers available for that ticketprinter and the
layout is not important)

Christophe

"RandyBosma via DBMonster.com" <u17281@uwe> schreef in bericht
news:82c53600676b1@uwe...
> What version of FoxPro are you using?
>
> In older versions ??? sends the character expression directly to the
> printer
> without incrementing the printer column or row; it was most often used to
> send control codes for bolding, line spacing, or other such non-printing
> control information. You then end up with the program being customized
> for
> one model of printer.
>
> When the user changes printer, you have to modify the program to
> accomodate
> the new printer. Much better would be to learn the use of FoxPro's
> built-in
> report writer.
>
> HTH,
> Randy
>
> christophe wrote:
>>Hi,
>>
>>Is the use of ??? the same as
>>set device to printer
>>@x,y
>>set device to screen
>>
>>the documentation of @x,y doesn't say much.
>>and i want to us it for plain text printing
>>
>>kind regards
>>christophe
>
> --
> Message posted via DBMonster.com
> http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200804/1
>



Re: ??? and @x,y by Bernhard

Bernhard
Thu Apr 17 05:11:58 CDT 2008

Hi christophe,

> I need to print to a printer port under TerminalServer (windows server 2003
> and SBS)
> without printer drivers.
> (There are no printer drivers available for that ticketprinter and the
> layout is not important)
some ideas to your problem:
- install the generic printer driver. It is included in every windows setup, the
naming varies a little between different windows versions (and of course
language). Look for something like "Generic / Text Only"
With this driver, all output is sent directly to the printer without further
driver intervention. Then I would use ??, not ??? and not @ x,y. Use ? only if
you want the CR/LF at the beginning of the line.

- If you want a pure plain text printing, then use ??? instead of @ x,y SAY
because the latter could add some additional spaces or line feeds based on the
different x,y of the commands lines.

Regards
Bernhard Sander

Re: ??? and @x,y by Man-wai

Man-wai
Fri Apr 18 05:43:47 CDT 2008

christophe wrote:
> Hi,
>
> Is the use of ??? the same as
> set device to printer
> @x,y
> set device to screen

Since you can't talk to the printer directly,
@... say might not work as in Foxpro/DOS.

Convert them into ??? or use a report writer.

--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.10) Linux 2.6.25
^ ^ 18:42:01 up 6:37 2 users load average: 1.05 1.06 1.07
? ? (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa/

Re: ??? and @x,y by Man-wai

Man-wai
Fri Apr 18 05:44:53 CDT 2008

christophe wrote:
> Hi,
>
> Is the use of ??? the same as
> set device to printer
> @x,y
> set device to screen

Also, @..say should talk to a dot-matrix printer.
Laser/inkjet printer?? umm.....

--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.10) Linux 2.6.25
^ ^ 18:44:01 up 6:39 2 users load average: 1.06 1.06 1.07
? ? (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa/