I currently have the need to print a large amount of data from a silverlight app. The customer is using a third party pdf printer driver . unfortunately the amount of data is overwhelming that driver.
My first thought to combat this is to create my own pdf file as opposed to using the printer subsystem.
The only truly graphic element in the printout is barcodes. I use your barcode control. The rest is text/columnar data.
So the question :
Can I add your barcode control to the raddocument within a table/cell value so that it will render properly to the pdf file. If so how would I go about doing that.
Any Help would be appreciated
David Charles Ocasio
4 Answers, 1 is accepted
You could create images from the RadBarcode control and insert them at the desired position in the RadDocument. Please, refer to the Export Support article about information on how to export a control to an image. Then, this image could be inserted in any place of the document using the API of RadDocumentEditor. The snippet below demonstrates how this could be achieved:
Hope this helps.
I am trying to take what you sent and use the radfixeddocument as opposed to the raddocument.
I eventually want to have in render in a table but I have simplified the code in a effort to verify that it renders at all.
What I get is a dark block. The barcode control (testbarcode) I placed on the page to verify that sizes and other visual stuff were taken care of. I eventually want to make that in code.
So what am I doing wrong.
David Charles Ocasio.
The image, taken from the RadBarcode doesn't have any background color and the transparent images are not supported in RadPdfProcessing. We have this feature request already logged in our backlog and you could vote for it and subscribe to the related public item in order to receive notifications about status changes on it.
In order to properly show the image in the document, you could set the Background property of a panel and wrap the RadBarcode in it:
Then this panel could be passed to the ExportImage() method.
Please, note that to ensure that everything will work as expected and the ExportImage() will be able to get the image, the barcode should be in the Visual Tree.
As you mentioned that you plan to insert the image in a table, you may find helpful to check the corresponding articles in our documentation.
thanks Tanya that worked perfectly
I was able to insert the stream from the wrapped barcode into a table as well.