fogedi
fogedi

Reputation: 1925

ASP.NET Printing css without print dialog and modal confirmation for successful print

This might have to be broken down a bit but what i want to do:

I have: - A List of (sort of) greeting cards. Each will be printed to a particular size (A4 folded down the longer edge)

I want to: Generate a list of these cards in HTML with css that puts the tags in their place which would be rotated 90°.

Ideally i'd want to print the list of cards without ever seeing their HTML. And without print dialog, but would want a modal confirmation dialog after printing where user input confirms they printed correctly.

So my questions are:

  1. Assuming divs for each card, do i just to rotate in the css and then add pagebreaks after each card to define a new page for printing? I'm really having trouble with the css, do you recommend any good resources for this?

  2. Do I need to specify page size or if the particular size paper is in the printer will the printer print proportionally?

  3. How can I print without browser's print dialog This is answered

  4. How can I catch when the printing job is finished?

  5. Would I be better off with using some PDF library?

Upvotes: 1

Views: 821

Answers (1)

Pol
Pol

Reputation: 5134

  3. How can I print without browser's print dialog.

This is not possible. Any browser shouldn't allow this. All you can do is to open print dialog from Javascript but user has to confirm.

Of course you can generate PDF but this requires user to print this PDF manully (clicking print button).

Upvotes: 1

Related Questions