Printing Avery Labels from ASP.NET MVC

I am trying to dynamically generate and print Avery labels from an ASP.NET MVC 2 application. Labels will be limited to approximately 5 different patterns. I am wondering what is the best way to do this? Shortcuts are critical to our application and as such, we need to minimize print errors as little as possible. A.

I heard that I can go for the kludgey approach and create HTML templates, however there will be numerous printing errors. The best approach I've found is to print to PDF. Are there any pitfalls for this approach and how difficult is it to implement it? Also would I do it? Does anyone know of any API or third-party software that takes care of this feature?

+5
source share
9 answers

I also struggled with the HTML / CSS approach due to inconsistent print behavior in browsers.

I created a C # library for creating Avery shortcuts in PDF from ASP.NET, which I hope may be useful:

https://github.com/wheelibin/SharpPDFLabel#readme

You can add images and text to tags, as well as easily define more types of tags.

(I use it for barcode shortcuts, the barcode is generated as an image, and then added to the label using this library.)

Greetings

+3
source
+1

Wheelibin SharpPDFLabel , . (.. ), MVC/iTextSharp/PDF .

+1
0

, Word Automation. Win32, Winform Web Apps, - Word, , , . - , . Word MailMerge, , - Word. , , , :

  • ( 5 )
  • PDF (, 2007 , pdf)

- . , , / , , . VBA .NET, .

, ( Word 2003, ) http://www.c-sharpcorner.com/UploadFile/amrish_deep/WordAutomation05102007223934PM/WordAutomation.aspx

0

PDF-. , , -. PDF , , ", ", - .

0

, media @print css "". , , , , . , , . -, Avery 5392 6-up.

0

, , - CSS, , HTML PDF , . EvoPDF ; , .

0

XML .DOCX. , , XML, DataTable ..

. "" Avery ASP.net Microsoft Word XML".

-1

All Articles