anonymous Log in
Search
Recents:
v3.0
gx-l
Printer command in procedure rule (web)
16/01/20 16:33

elisa

Replies: 9

Hi,
Then I have a label printer locally, that is, it is physically connected to the PC.
I created a web application to print the labels, but I can't communicate with the Gxprn.ini and I can't even run the GxSetFrm exe.
I have read all the documentation regarding the gxprn.ini to set up the printer, but in my web application I cannot get the printer command to work in the rules of my procedure.
I know that for web applications when I need to edit the pdf, I have to interface with the PDFReport.ini.
I wonder, is it possible to make a web application communicate with a printer locally?
Is the printer command in web applications valid?
I have to set that for that specific pdf the printer is the one I have locally, is it possible? Is the printer command in web applications valid?
I have to set that for that specific pdf the printer is the one I have locally, is it possible?
I don't even have to open the printer dialog so I have to be looking for it to take the right printer.
I set the printer in gxprn.ini by hand without using the exe but in the web application it is not considered.
I repeat I need a web application to print to a well-defined local printer. it's possible?
Let me know please. Thank you.
Regards,
ElisaAmandoli
Sviluppo Software
[virgola25 Midi]
[Descrizione: Descrizione: RTS 1989 Mail]
E elisa@rtsnet.it<mailto:elisa.amandoli@rtsnet.it>
T 0758010260
F 0758011789
W www.rtsnet.eu
==================================================================================
Per favore pensa all'ambiente prima di stampare questa mail (o altro documento)
Please consider the environment before printing this mail (or this document)
==================================================================================
Le informazioni contenute in questa comunicazione e negli allegati sono riservate; è vietato a soggetti diversi dall'effettivo destinatario qualsiasi uso, copia, diffusione di quanto in essi contenuto, sia ai sensi dell'articolo 616 c.p., sia ai sensi e per gli effetti del T.U. sulla privacy (D.lgs 196/2003). Qualora il presente messaggio Vi fosse pervenuto per errore, dovrete provvedere alla sua immediata cancellazione dandocene notizia via e-mail all'indirizzo del mittente o all'indirizzo info@rtsnet.it<mailto:info@rtsnet.it>
This e-mail and any attachment(s) are strictly confidential. This message must not be copied, disclosed or used by anybody other than the intended recipient(s). If you are not the intended recipient(s), please inform the sender by e-mail or send a message to info@rtsnet.it<mailto:info@angelantoni.it> and destroy this message immediately
Replies

martin gaston

16/01/20 17:29
Hi elisa, What technology are you develop with? Java, Net, Other Is the application on an intranet or is it on the cloud? El jue., 16 ene. 2020 a las 13:34, Elisa Amandoli ()

ap.cloudcomputing

16/01/20 17:29
Hi Elisa, I faced the same problem, I searched a lot and i couldn't find the solution. The only alternative i've found is display the document as a PDF in the browser and then manually click Print button. I didn't try printing a file directly to a printer with CMD commands. Maybe that works. Greetings!. El jue., 16 ene. 2020 a las 13:34, Elisa Amandoli ()

fsalomon

16/01/20 18:56
Hi all, to solve the problem, you need to use this alternative: https://wiki.genexus.com/commwiki/servlet/wiki?33912,Web%20printing%20on%20client%20printer%20%28without%20an%20applet%29 This is a silent client side printing mechanism. Regards, On Thu, Jan 16, 2020 at 2:30 PM Agustín Pereira

elisa

17/01/20 08:39
Hi, I tried this. I launched the java file, added the javascript and the printer rule. Printing is performed, but always on the default printer. What am I doing wrong? Greetings, ElisaAmandoli Sviluppo Software [virgola25 Midi] [Descrizione: Descrizione: RTS 1989 Mail] E elisa@rtsnet.it T 0758010260 F 0758011789 W www.rtsnet.eu ================================================================================== Per favore pensa all'ambiente prima di stampare questa mail (o altro documento) Please consider the environment before printing this mail (or this document) ================================================================================== Le informazioni contenute in questa comunicazione e negli allegati sono riservate; è vietato a soggetti diversi dall'effettivo destinatario qualsiasi uso, copia, diffusione di quanto in essi contenuto, sia ai sensi dell'articolo 616 c.p., sia ai sensi e per gli effetti del T.U. sulla privacy (D.lgs 196/2003). Qualora il presente messaggio Vi fosse pervenuto per errore, dovrete provvedere alla sua immediata cancellazione dandocene notizia via e-mail all'indirizzo del mittente o all'indirizzo info@rtsnet.it This e-mail and any attachment(s) are strictly confidential. This message must not be copied, disclosed or used by anybody other than the intended recipient(s). If you are not the intended recipient(s), please inform the sender by e-mail or send a message to info@rtsnet.it and destroy this message immediately Da: Federico Salomón Inviato: giovedì 16 gennaio 2020 19:57 A: GeneXus de Oggetto: Re: [gx-l] Printer command in procedure rule (web) Hi all, to solve the problem, you need to use this alternative: https://wiki.genexus.com/commwiki/servlet/wiki?33912,Web%20printing%20on%20client%20printer%20%28without%20an%20applet%29 This is a silent client side printing mechanism. Regards, On Thu, Jan 16, 2020 at 2:30 PM Agustín Pereira >

elisa

17/01/20 08:28
Hi, I tried this. I launched the java file, added the javascript and the printer rule. Printing is performed, but always on the default printer. What am I doing wrong? Greetings, ElisaAmandoli Sviluppo Software [virgola25 Midi] [Descrizione: Descrizione: RTS 1989 Mail] E elisa@rtsnet.it T 0758010260 F 0758011789 W www.rtsnet.eu ================================================================================== Per favore pensa all'ambiente prima di stampare questa mail (o altro documento) Please consider the environment before printing this mail (or this document) ================================================================================== Le informazioni contenute in questa comunicazione e negli allegati sono riservate; è vietato a soggetti diversi dall'effettivo destinatario qualsiasi uso, copia, diffusione di quanto in essi contenuto, sia ai sensi dell'articolo 616 c.p., sia ai sensi e per gli effetti del T.U. sulla privacy (D.lgs 196/2003). Qualora il presente messaggio Vi fosse pervenuto per errore, dovrete provvedere alla sua immediata cancellazione dandocene notizia via e-mail all'indirizzo del mittente o all'indirizzo info@rtsnet.it This e-mail and any attachment(s) are strictly confidential. This message must not be copied, disclosed or used by anybody other than the intended recipient(s). If you are not the intended recipient(s), please inform the sender by e-mail or send a message to info@rtsnet.it and destroy this message immediately Da: Federico Salomón Inviato: giovedì 16 gennaio 2020 19:57 A: GeneXus de Oggetto: Re: [gx-l] Printer command in procedure rule (web) Hi all, to solve the problem, you need to use this alternative: https://wiki.genexus.com/commwiki/servlet/wiki?33912,Web%20printing%20on%20client%20printer%20%28without%20an%20applet%29 This is a silent client side printing mechanism. Regards, On Thu, Jan 16, 2020 at 2:30 PM Agustín Pereira >

hugao118

17/01/20 13:05
Nothing wrong with it, that's the way it works. On Fri, Jan 17, 2020, 7:59 AM Elisa Amandoli

elisa

17/01/20 13:31
According to the link it should take the printer and the settings indicated in the gxprn.ini by the rule Printer, not always print in the default printer. Unless I got it wrong. ElisaAmandoli Sviluppo Software [virgola25 Midi] [Descrizione: Descrizione: RTS 1989 Mail] E elisa@rtsnet.it T 0758010260 F 0758011789 W www.rtsnet.eu ================================================================================== Per favore pensa all'ambiente prima di stampare questa mail (o altro documento) Please consider the environment before printing this mail (or this document) ================================================================================== Le informazioni contenute in questa comunicazione e negli allegati sono riservate; è vietato a soggetti diversi dall'effettivo destinatario qualsiasi uso, copia, diffusione di quanto in essi contenuto, sia ai sensi dell'articolo 616 c.p., sia ai sensi e per gli effetti del T.U. sulla privacy (D.lgs 196/2003). Qualora il presente messaggio Vi fosse pervenuto per errore, dovrete provvedere alla sua immediata cancellazione dandocene notizia via e-mail all'indirizzo del mittente o all'indirizzo info@rtsnet.it This e-mail and any attachment(s) are strictly confidential. This message must not be copied, disclosed or used by anybody other than the intended recipient(s). If you are not the intended recipient(s), please inform the sender by e-mail or send a message to info@rtsnet.it and destroy this message immediately Da: Hugo Armando Cadena Mantilla Inviato: venerdì 17 gennaio 2020 14:05 A: GX-GeneXus Cc: Nicola Pilli ; Rita Bernacchia Oggetto: Re: [gx-l] Printer command in procedure rule (web) Nothing wrong with it, that's the way it works. On Fri, Jan 17, 2020, 7:59 AM Elisa Amandoli >

jlsantosp

17/01/20 16:52
Revisa esto https://wiki.genexus.com/commwiki/servlet/wiki?33912,Web+printing+on+client+printer+%28without+an+applet%29 El El vie, 17 de ene. de 2020 a la(s) 07:59, Elisa Amandoli

elisa

20/01/20 16:57
Hi, We tried to print with gxprintserver.jar and we can print with the default printer. The problem is that the printer is a Dymo LabelWriter 400 turbo label printer and when it prints it loses about 40% of space because it does not print at the top of the label. Even playing with the MT command by setting negative numbers, the printblock is printed a little higher but is cut, as if it could not write on it. I tried to set the TopMargin to 0 in PDFReport.ini and, although it has improved slightly, even wasted part is too large anyway. I tried also to change the settings of the printer but it have very few settings. What can we do? In version 9 of Genexus we have a procedure that prints using this printer but uses the rule "Printer" and the GXPRN.ini file which, it seems to us, is completely ignored in the most recent versions. I don't know if it can matter but in the shell where I launched the jar file, I have this warning: gen 20, 2020 5:10:19 PM org.apache.pdfbox.cos.COSDocument finalize AVVERTENZA: Warning: You did not close a PDF Document Could this have to do with it? I tried to modify the PDFreport.ini in several ways, but they did not lead to anything and the gxprn.ini file seems to have no effect. Here it says that the printer rule is not supported… https://www5.genexus.com/xev3/scmain.aspx?E%3B178%3B94%3B1264%3B1%3B1%3BO%3B,39762;4;XEV3;9;10;F;&&&&& but here… https://wiki.genexus.com/commwiki/servlet/wiki?33912,Web+printing+on+client+printer+%28without+an+applet%29,says to insert the rule. says to insert the rule. Regards, ElisaAmandoli Sviluppo Software [virgola25 Midi] [Descrizione: Descrizione: RTS 1989 Mail] E elisa@rtsnet.it T 0758010260 F 0758011789 W www.rtsnet.eu ================================================================================== Per favore pensa all'ambiente prima di stampare questa mail (o altro documento) Please consider the environment before printing this mail (or this document) ================================================================================== Le informazioni contenute in questa comunicazione e negli allegati sono riservate; è vietato a soggetti diversi dall'effettivo destinatario qualsiasi uso, copia, diffusione di quanto in essi contenuto, sia ai sensi dell'articolo 616 c.p., sia ai sensi e per gli effetti del T.U. sulla privacy (D.lgs 196/2003). Qualora il presente messaggio Vi fosse pervenuto per errore, dovrete provvedere alla sua immediata cancellazione dandocene notizia via e-mail all'indirizzo del mittente o all'indirizzo info@rtsnet.it This e-mail and any attachment(s) are strictly confidential. This message must not be copied, disclosed or used by anybody other than the intended recipient(s). If you are not the intended recipient(s), please inform the sender by e-mail or send a message to info@rtsnet.it and destroy this message immediately Da: Juan Santos Inviato: venerdì 17 gennaio 2020 17:53 A: gx-l@gxtech.com.uy Oggetto: Re: [gx-l] Printer command in procedure rule (web) Revisa esto https://wiki.genexus.com/commwiki/servlet/wiki?33912,Web+printing+on+client+printer+%28without+an+applet%29 El El vie, 17 de ene. de 2020 a la(s) 07:59, Elisa Amandoli >


Back to gx-l