nini9140 / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Printing multiple copies? #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is there is a way to print multiple copies of a PDF other than issuing print() 
multiple times?

Original issue reported on code.google.com by rvtecrv...@gmail.com on 16 Mar 2012 at 5:31

GoogleCodeExporter commented 9 years ago
Not currently.

How would you like to call it?

I did expect this feature to be requested eventually.

Can you confirm Issue 42 is closed before I proceed with the enhancement?

-Tres

-Tres

Original comment by tres.fin...@gmail.com on 16 Mar 2012 at 5:40

GoogleCodeExporter commented 9 years ago
Something like, 
applet.appendPDF(url_to_pdf, number_of_copies);
or
applet.print(number_of_copies);

I am not having any margin problems printing PDFs with version 1.3.5. Also, I 
did not create that issue. I created Issue 47.

Original comment by rvtecrv...@gmail.com on 16 Mar 2012 at 5:59

GoogleCodeExporter commented 9 years ago
Yes this would be a good feature to add. Even while printing labels its a 
common requirement to print multiple prints.

so applet.print(number_of_copies) 

would be a good feature.

Original comment by Pankaj.K...@gmail.com on 21 Mar 2012 at 12:18

GoogleCodeExporter commented 9 years ago
Hi, I don't think the native ability to print multiple copies is critical. Is 
there any specific benefit to having jZebra submit the # of copies instead of 
calling the print function in a loop?

Original comment by brendon....@gmail.com on 11 Apr 2012 at 3:09

GoogleCodeExporter commented 9 years ago
Main advantage I would see is cleaner code.  You wouldn't have to keep checking 
to see of the print was complete before submitting the next one.  At least 
that's my thought.  -Tres

Original comment by tres.fin...@gmail.com on 11 Apr 2012 at 12:37

GoogleCodeExporter commented 9 years ago
Added printer attributes for multiple copies for version 1.4.5, but PDF writers 
I'm testing with won't honor the setting.

If you can test this feature before 1.4.5 is uploaded, email me, 
tres.finocchiaro@gmail.com

-Tres

Original comment by tres.fin...@gmail.com on 10 Aug 2012 at 4:50

GoogleCodeExporter commented 9 years ago
How can i give number of copies?

Original comment by rkaartik...@gmail.com on 26 Nov 2012 at 1:15

GoogleCodeExporter commented 9 years ago
The parameter is applet.setCopies(2); etc but the Print Spooler seems to ignore 
the setting.

Let me know if you have any more luck with it.

-Tres

Original comment by tres.fin...@gmail.com on 26 Nov 2012 at 1:42

GoogleCodeExporter commented 9 years ago
I cannot get applet.setCopies() to work either.

Original comment by chris.ma...@gmail.com on 28 Mar 2013 at 2:48

GoogleCodeExporter commented 9 years ago
Hey just saw this issue, and their is a way to print multiple things, i do it 
current with just one fv.print() command. You probably want to look at whatever 
method you have calling documents to be printed, I can post my example on here 
in a bit, but you don't want to use jZebra really to print multiple things, nor 
do you need too.

-Aaron

Original comment by aaron.ma...@gmail.com on 3 Oct 2013 at 3:37

GoogleCodeExporter commented 9 years ago
@Aaron,

The issue is, the printers allow the "copies" setting to be provided, so for 
large documents it would only need to travel over the wire once.

I am hesitant to send the "print()" command several times as this is not 
technically the same thing.

I believe this is a simple fix, but as I've illustrated before, the PostScript 
features are quite underdeveloped and will be addressed as they are demanded.

Original comment by tres.fin...@gmail.com on 3 Oct 2013 at 3:44

GoogleCodeExporter commented 9 years ago
Hi all. We have a problem printing multiple labels on the same process.
On the server function i call to the zebra print functions and maybe depend of 
parametrer value i need print another diferent label, but all on the 
button_click process.

I have on the label.js this:

function jzebraReady() {
    // Change title to reflect version
    qz = document.getElementById('qz');

}

and on the script printing function:

function PrintPedidoLabel10x8(Fecha, DelegacionOrigen, Expedicion) {
    try {

        if (qz != null) {

On the server i write script on the page to call de function, like this:

RadAjaxManager1.ResponseScripts.Add(FunctionLabelName + "('" + 
oRowAlertran["producto"].ToString() + "'" +
                            ",'" + oRowAlertran["expedicion"].ToString()....)

the result is only ONE label is printed to the zebra...but!!! the alert of 
monitorPrinting function....show 2 times!!

please help me!!

Original comment by gustavo....@gmail.com on 27 Nov 2013 at 2:15

GoogleCodeExporter commented 9 years ago
@gustavo,

Your code snippet does not show any qz.print() or qz.append(...) example, so it 
is impossible at this time to find your problem.

Can you modify sample.html and reproduce this problem?

If not, can you provide some more insight into how the applet is being used?

-Tres

Original comment by tres.fin...@gmail.com on 27 Nov 2013 at 2:22

GoogleCodeExporter commented 9 years ago
yes, sorry. I added 3 files, you can see on the MainPage.txt y call 
Funciones.ImprimeEtiquetaBulto on clsFunctions.txt and on it register script to 
call jzebra print functions. On the first file MainPage.txt y call the 
imprimeEtiquetaBulto but above this, if 
(Convert.ToInt32(txtCantidadBultos.Value) > 1) i need print another label. The 
result only one label is printed and 2 alerts are showed

Original comment by gustavo....@gmail.com on 27 Nov 2013 at 2:50

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry,,any Idea?

Original comment by gustavo....@gmail.com on 28 Nov 2013 at 2:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
There are many mistakes in your code.

1.  Possible typo, Etiquetas.js, line 266 (screenshot attached)
2.  Function findPrinter() is asynchronous: You must wait for it to complete 
(see sample.html in version 1.7.8)
3.  Function monitorPrinting and monitorFinding should be replaced with more 
modern code examples (see sample.html in version 1.7.8)

This should help you.  Since the bug you've posted to is in regards to 
PostScript functionality (you are using RAW), I would recommend using the 
jzebra mailing list for further questions (or qz premium support if interested).

This bug report is not related to your specific problem.

-Tres

Original comment by tres.fin...@gmail.com on 30 Nov 2013 at 8:50

Attachments: