Adding a checkbox symbol using OOo API VB.NET and UNO -


i've been searching solution quite time no luck.

i have pdf generating using vb.net, openoffice api , uno. generating text document , need able insert checkbox in code.

one possible solution change font wingdings , type 'o' solution neither elegant nor easy implement given environment (using company created code text document creation , manipulation, have write command write document (strings)).

if it's possible add checkbox string of text perfect.

have tried use image of checkbox (one checked , other unchecked) , inject pdf, this:

caveat - have worked itextsharp following code relevant itextsharp, concept should translate whatever pdf generating library/framework using

method #1 - put checkbox image table cell

dim imgcheckboxchecked image = image.getinstance(httpcontext.current.server.mappath("checkbox_checked.gif")) dim imgcheckboxunchecked image = image.getinstance(httpcontext.current.server.mappath("checkbox_unchecked.gif"))  dim table table dim cell cell  cell = new cell(new paragraph("", font))  '' add checked or unchecked here cell.addelement(imgcheckboxchecked) cell.addelement(imgcheckboxunchecked) table.addcell(cell) 

method #2 - put checkbox image document

'' add checked or unchecked here pdfdoc.add(imgcheckboxchecked) pdfdoc.add(imgcheckboxunchecked) 

note: need find or create .gif images checked , unchecked.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -