Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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

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

Problem

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?

Problem courtesy of: fogedi

Solution

  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).

Solution courtesy of: Pol

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

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

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×