Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5926 > unrolled thread

Superprint Class

Started by"Craig Dawson" <craig@control.nospam.net.au>
First post2011-02-04 07:39 +1100
Last post2011-02-03 21:37 +0000
Articles 7 — 5 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Superprint Class "Craig Dawson" <craig@control.nospam.net.au> - 2011-02-04 07:39 +1100
    Re: Superprint Class "Harry B." <bongoplayer@gmail.com> - 2011-02-04 05:19 +0100
    Re: Superprint Class "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-02-04 08:00 +1100
    Re: Superprint Class "Craig Dawson" <craig@control.nospam.net.au> - 2011-02-04 08:57 +1100
    Re: Superprint Class "Filip Fransen" <filip_666@hotmail.com> - 2011-02-06 21:39 +0100
      Re: Superprint Class "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-02-06 21:08 +0000
    Re: Superprint Class "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-02-03 21:37 +0000

#5926 — Superprint Class

From"Craig Dawson" <craig@control.nospam.net.au>
Date2011-02-04 07:39 +1100
SubjectSuperprint Class
Message-ID<4d4b127c$0$65954$c30e37c6@pit-reader.telstra.net>
Hi all,
Does anyone know where you can still get the Superprint Class?
I need to open a cash drawer that is connected to a POS printer that in turn 
is connected to a USB port (without actually printing a receipt) and thought 
that it could do the job.
It used to be at Ralf's site 
http://www.ralfkdev.de/ralfkdev/ralfs_homepage_mainframe.htm but it seems to 
be down.
Thanks in advance,
Craig. 

[toc] | [next] | [standalone]


#5972

From"Harry B." <bongoplayer@gmail.com>
Date2011-02-04 05:19 +0100
Message-ID<iifuno$rb2$1@news01.versatel.de>
In reply to#5926
Try this one

http://www.ralfkdev.de/ralfs_homepage_mainframe.htm

--Harry B.

[toc] | [prev] | [next] | [standalone]


#5981

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2011-02-04 08:00 +1100
Message-ID<fHE2p.9455$MF5.143@viwinnwfe02.internal.bigpond.com>
In reply to#5926
Craig

> Does anyone know where you can still get the Superprint Class?

Ring Phil - it's used in Sherlock, he should have the source.

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#5982

From"Craig Dawson" <craig@control.nospam.net.au>
Date2011-02-04 08:57 +1100
Message-ID<4d4b24c5$0$65959$c30e37c6@pit-reader.telstra.net>
In reply to#5926
Thanks Geoff, but I need it for the DBF version, not the SQL version of 
ControlPro.
I was using netuse and redirecting output to a LPT port for shared local USB 
printer but it's a bit messy.
Thought sending command codes to open a cash drawer directly to USB printer 
through superprint would be a nice clean answer.

Craig.

"Geoff Schaller" <geoffx@softwarexobjectives.com.au> wrote in message 
news:4d4b202a$0$10582$c30e37c6@exi-reader.telstra.net...
> You don't need that Craig.
>
> We have the code that does this directly.
>
> Geoff
>
>
>
> "Craig Dawson" <craig@control.nospam.net.au> wrote in message 
> news:4d4b127c$0$65954$c30e37c6@pit-reader.telstra.net:
>
>> Hi all,
>> Does anyone know where you can still get the Superprint Class?
>> I need to open a cash drawer that is connected to a POS printer that in 
>> turn
>> is connected to a USB port (without actually printing a receipt) and 
>> thought
>> that it could do the job.
>> It used to be at Ralf's site
>> http://www.ralfkdev.de/ralfkdev/ralfs_homepage_mainframe.htm but it seems 
>> to
>> be down.
>> Thanks in advance,
>> Craig.
> 

[toc] | [prev] | [next] | [standalone]


#5988

From"Filip Fransen" <filip_666@hotmail.com>
Date2011-02-06 21:39 +0100
Message-ID<tGD3p.37374$837.18161@newsfe19.ams2>
In reply to#5926
Hi,

I use this code below for more then 10 years  without any problems. Simply 
define the printer as a generic text printer and send a string using this 
function

Regards
Filip

FUNCTION RawDataToPrinter( sPrinter AS STRING, sText AS STRING ) AS LOGIC 
PASCAL

    LOCAL sPtrDflts                IS _WINPRINTER_DEFAULTS
    LOCAL sDocInfo                IS _winDOC_INFO_1
    LOCAL hPrinter                AS PTR
    LOCAL nWritten    := 0        AS DWORD
    LOCAL lOk        := FALSE    AS LOGIC

    IF OpenPrinter( String2Psz(sPrinter),  @hPrinter, @sPtrDflts )
        sDocInfo.pDocName        := String2Psz("Direct")
        sDocInfo.pOutPutFile    := NULL_PSZ
        sDocInfo.pDataType        := String2Psz("RAW")

        IF ! StartDocPrinter( hPrinter, 1, @sDocInfo ) = 0
            IF StartPagePrinter( hPrinter )
                // Write
                WritePrinter( hPrinter, String2Psz(sText), SLen(sText), 
@nWritten )

                IF SLen( sText ) = nWritten
                    lOk := TRUE
                ENDIF

                // Close
                EndPagePrinter( hPrinter )
                EndDocPrinter( hPrinter )
                ClosePrinter( hPrinter )

            ELSE
                // Close
                EndDocPrinter( hPrinter )
                ClosePrinter( hPrinter )
            ENDIF

            // Close
            ClosePrinter( hPrinter )
        ELSE
            // Close
            ClosePrinter( hPrinter )
        ENDIF
    ENDIF

RETURN lOk


"Craig Dawson"  wrote in message 
news:4d4b127c$0$65954$c30e37c6@pit-reader.telstra.net...

Hi all,
Does anyone know where you can still get the Superprint Class?
I need to open a cash drawer that is connected to a POS printer that in turn
is connected to a USB port (without actually printing a receipt) and thought
that it could do the job.
It used to be at Ralf's site
http://www.ralfkdev.de/ralfkdev/ralfs_homepage_mainframe.htm but it seems to
be down.
Thanks in advance,
Craig.

[toc] | [prev] | [next] | [standalone]


#6013

From"Geoff Schaller" <geoffx@softwarexobjectives.com.au>
Date2011-02-06 21:08 +0000
Message-ID<4d4f0dd2$0$32795$c30e37c6@exi-reader.telstra.net>
In reply to#5988
Yes - I think this was what Marc was suggesting but you have 
encapsulated the code as well.



"Filip Fransen" <filip_666@hotmail.com> wrote in message 
news:tGD3p.37374$837.18161@newsfe19.ams2:

> Hi,
>
> I use this code below for more then 10 years  without any problems. Simply
> define the printer as a generic text printer and send a string using this
> function
>
> Regards
> Filip
>
> FUNCTION RawDataToPrinter( sPrinter AS STRING, sText AS STRING ) AS LOGIC
> PASCAL
>
>     LOCAL sPtrDflts                IS _WINPRINTER_DEFAULTS

[toc] | [prev] | [next] | [standalone]


#6021

From"Geoff Schaller" <geoffx@softwarexobjectives.com.au>
Date2011-02-03 21:37 +0000
Message-ID<4d4b202a$0$10582$c30e37c6@exi-reader.telstra.net>
In reply to#5926
You don't need that Craig.

We have the code that does this directly.

Geoff



"Craig Dawson" <craig@control.nospam.net.au> wrote in message 
news:4d4b127c$0$65954$c30e37c6@pit-reader.telstra.net:

> Hi all,
> Does anyone know where you can still get the Superprint Class?
> I need to open a cash drawer that is connected to a POS printer that in turn
> is connected to a USB port (without actually printing a receipt) and thought
> that it could do the job.
> It used to be at Ralf's site
> http://www.ralfkdev.de/ralfkdev/ralfs_homepage_mainframe.htm but it seems to
> be down.
> Thanks in advance,
> Craig.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web