English
Forum

Print Page Content read

 
- Page 1 -



Rolf
Koch
The following is again not my strength
Have one Tool program, where I on a printer with the usual Apis access.
me missing To dato yet irgendeine Possibility if the Druckbefehl ankommt before whom Content auszulesen, before it druckt.
means so in the manner: Druckerseite in String.
of/ one a idea? me falls in the momentum nothing one
 
11/17/10  
 



« this Posting watts as Solution marked. »


Andreas
Miethe


Rolf Koch (11/20/10)
so having before the Konzert again gekuckt and fixes, that
print test&,wi&,he&
always 0,0,0 printen.
Well time cosy rangehen and study ^^


If asks on the incorrect place the Devmode-structure.
high or Landscape standing on position 44 as word 1 or 2
 {$cleq}
 $H windows.ph
 $H winspool.ph
DEF Get_STDPrinter(1) Substr$(ReadIni$("WIN.INI","Windows","Device"),@&(1),",")
DEF &PRINTER_CHANGE_JOB  $FF00
DEF &INFINITE $FFFFFFFF
DEF &PRINTER_CHANGE_ADD_JOB $100
DEF OpenPrinterA(3) !"winspool.drv","OpenPrinterA"
DEF FindFirstPrinterChangeNotification(4) !"winspool.drv","FindFirstPrinterChangeNotification"
DEF FindNextPrinterChangeNotification(4) !"winspool.drv","FindNextPrinterChangeNotification"
DEF EnumJobsA(8) !"winspool.drv","EnumJobsA"
DEF FindClosePrinterChangeNotification(1) !"winspool.drv","FindClosePrinterChangeNotification"
DEF ClosePrinter(1) !"winspool.drv","ClosePrinter"
Declare JOB_INFO_1#
Declare druckername$,document$,dstring$
Declare end%,lb&,old_count&,entry$,sounddir$,license$
Declare hicon&,cancel&,Title$,Version$,config$
Declare wav$,dateipfad$,belege$,watts$,new$,abelege%
Var InfoBuffer& = 0
Var BytesNeeded& = 0
Var BytesReturned& = 0;
Var A& = 0
Var L& = 0
Var chgObject& = 0
Var pdwChange& = 0
Var fcnreturn& = 0
Var hPrinter& = 0
Var foundprint& = 0
Var Printer$ = Get_STDPrinter(1)
Var devmoaddr&=0
Var drv$=""
Var wi&=0
Var he&=0
Var Orientation&=0
Var test&=0
//Window Style 64
CLS
print usedll("winspool.drv")
print printer$
print OpenPrinterA(Addr(Printer$),Addr(hPrinter&),0)
print hPrinter&
chgObject& = FindFirstPrinterChangeNotification(hPrinter&,&PRINTER_CHANGE_JOB, 0, 0)
print chgObject&
dateipfad$=$progdir
dstring$="Drucktest.rtf"'Wordpad File under Drucktest.rtf stored for Test!
' best a Filedruck select, so one no paper uses.
settimer 50

WhileNot end%

    Waitinput

    If %wmtimer

        ~WaitForSingleObject(chgObject&,150)'200 Millisekunden Waiting
        fcnreturn& = FindNextPrinterChangeNotification(chgObject&, Addr(pdwChange&),0,0)
        foundprint&=0

        If fcnreturn&

            If pdwChange& = &PRINTER_CHANGE_ADD_JOB

                'Print "neuer pressure-Job"
                EnumJobsA(hPrinter&,0,1,2,0,0,Addr(BytesNeeded&),Addr(BytesReturned&))
                Dim JOB_INFO_1#,BytesNeeded&

                Repeat

                    EnumJobsA(hPrinter&,0,1,2,JOB_INFO_1#,BytesNeeded&,Addr(BytesNeeded&),Addr(BytesReturned&))

                    If BytesReturned&

                        'Locate 0,0
                        druckername$=String $(Long(JOB_INFO_1#,4),0)
                        document$=String $(Long(JOB_INFO_1#,16),0)
                        foundprint&=1
                        devmoaddr&=Long(JOB_INFO_1#,40)
                        test&=long(devmoaddr&,104)
                        wi&=long(devmoaddr&,108)
                        he&=long(devmoaddr&,112)
                        Orientation&=word(devmoaddr&,44)
                        drv$=string $(devmoaddr&,0)

                    EndIf

                Until BytesReturned& = 0

                If foundprint&=1

                    print document$
                    print dstring$
                    print drv$
                    print test&,wi&,he&
                    Print If (Orientation& = 1,"Hochformat","Querformat")

                    If document$=dstring$

                        'playsound sounddir$+"doorbell.wav",1 'HIER SOUNDAUSGABE
                        PRINT "Jetzt would the loudspeaker Dingdong spielen"

                    EndIf

                EndIf

            EndIf

        EndIf

    EndIf

EndWhile

FindClosePrinterChangeNotification(chgObject&)
ClosePrinter(hPrinter&)
killtimer
End
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
11/20/10  
 



I at least understand not so integrally what you mean. ^^

Print is Yes in the Grunde too only on nem DC pinseln - You could to EndPaint simply time try of %pdc to %hdc To copy.

Dou you mean something like?
 
11/17/10  
 




Rolf
Koch
Lol Sorry - No I Have there still one Program in the Fa. walk, which recognize, if one bestimmter Druckbefehl vorliegt, means if one customer payd has and the merchandise call for comes.
I Have whom pressure Yes not written, separate überwache only whom printer.
means if you it so write, becomes it well you don't say so his, whom Content the on whom printer gesandten Textes to get, there it itself circa graphic deals?
before was the String on whom printer eindeutig and lautete Warenausgabe.grp
now sounds it only yet JavaPrinting and this relating itself on others Vorgänge The the printer ausdruckt. therefore should I additional items find out, which itself only Text discern let which the printer rauswirft.
 
11/17/10  
 




E.T.
might one whom Print-commands not 2x join, 1x in File (what eigentl. eachone Druckertreiber can) and then again to that printer ??
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/17/10  
 




Rolf
Koch
No I Have none Einfluss on the printer. its The Firmensoftware what about me were hold on the Rampencomputer from. there Have I nothing with To do - utterly höhere power
in the momentum erkenne I Yes if one pressure comes and erkenne whom Dokumententitel and respond hereon.
it should means yet additional what give How:
Content in Variable reading - process ....
More can I there don't.
 
11/17/10  
 




Rolf
Koch
where me it so slow to Treibergeschichte looks, or - then let I The thoughts now rather time LOL.
hope, that the not so is ^^
 
11/17/10  
 




E.T.
can You do not on your RampenComputer  whom printer so take on, the this perm. in a File druckt ?? this ought to Yes, independent of Program, which druckt, possible his.
And then simply by eigenem Prog check, whether a "Druckerdatei" vorliegt, these evaluate and then first ggf. to that printer send (weglöschen and on The next Waiting) ???
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/17/10  
 




Rolf
Koch
Lol I mean I can me not correctly. squeeze out.
I can and may there not simply take on in File, because there important Belege z.B. for Unterschrift for spending on customers rauskommen. I can Yes not The File with the unit on The spending take ^^
P.s. I can means not simply pressure in File take on. supreme plain How said.
 
11/17/10  
 




E.T.
Ah Yes, I kappier it: You could not time bearing, whether a pressure on this or jenem printer (with z.B. 2 Printers) rauskommt. the iss then nat. thick...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/17/10  
 




Rolf
Koch
even Mario so see it from. it go Yes yet integral More things there over printer gesendet.
it must really Druckerinhalt to Variable his. If not goes mach I me further thoughts The Parameter to recognition whether it the right order is To discern and verwerfe whom jetzigen thoughts.
where: Andreas Miethe was today not yet here - LOOOOOOL - there setz I heavy hope mere ^^
 
11/17/10  
 




E.T.
must but nevertheless again stupid ask (one can Yes only learn):


...before was the String on whom printer eindeutig and lautete Warenausgabe.grp
now sounds it only yet JavaPrinting....


Seh I the now wrong, the before  The File "Warenausgabe.grp" on your Comp. to that print skillful watts ?? can you, if everything "JavaPrinting" heist, into File look (which to that printer gesendet becomes), whether You a Dokumenten-cover read could ?? or must You the neither...

(only time so, weils me interested...)
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/17/10  
 




Rolf
Koch
therefore goes it Yes. before needed I do not into File To look, which whom important auszufilternden cover Warenausgabe.grp wore.
now is it vereinheitlicht been and the cover sounds in many sharing JavaPrinting.
accordingly becomes my action not only with Warenausgabe carryed out, separate with too others Druckaufträgen.

You write hold very the I wants: now should I into File look.
we self schubsen these File but not on, separate The comes of Server and.... and... and... - we've none Einfluss on The File u.s.w. - The becomes from the companies Hauptanwendung generiert.

Nachtrag: The Dokumententitel is Yes now JavaPrinting instead of Warenausgabe.grp - both the same take action.
 
11/17/10  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

47.283 Views

Untitledvor 0 min.
Christof Neuß05/20/18
Manfred Barei07/26/15
Uwe Lang09/06/13
Pauli05/14/13
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie