vb.net - Winform - Label Printing? -


i working on application in need print labels ranging 1"x3" 8"x10". text , images printed on labels defined in xml file contains needed info including location on label defined top-left xy coordinate. not want preview print job, send printer on command. question is, preferred method doing this?

i have toyed around 2 different methods.

method one: reading xml , locating items on form, creating image of form , printing it. works seems bit hokey?? have display form second create image , not want that.

method two: have looked using migradoc create label document , sending printer. approach create form , send printer without being displayed however, not see how can locate items within document based on xy coordinates?? maybe have missed here seems section , paragraph driven.

what best/easiest way accomplish this?

re method two:
migradoc can use textframes position items using xy co-ordinates. textframes can overlap , if use method responsibility make sure fits designated area.

the better way of using migradoc using tables and/or paragraphs exact heigths or spacings. cannot used approach of using xml files co-ordinates spacings have relative previous item.

you can use pdfsharp create pdf file draws @ right places. printing problem - can call adobe reader passing command-line arguments print automatically, cannot set sophisticated printer options. if create few print jobs , manual intervention not problem, option (and pdf files allow visual check of document before print it).


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -