Hi,
we are using c# and TelerikRadControls for wpf. Now we try to create a BarcodeDesigner by using "RichTextBox" + RadBarcode39 + MailMerge.
Is it possible to merge the value of the RadBarcode on a RichTextBox?
Thanks a lot
Best Regards
Rene
6 Answers, 1 is accepted
My suggestion would be to include the barcodes as an IncludePictureField element in the document and ensure when performing the mail merge they will be evaluated as a picture containing the RadBarcode. You can take advantage of the ExportExtensions to export the RadBarcode to an image.
Take a look at the Mail Merge demo for RadRichTextBox in our examples for a reference on how you can use IncludePictureFields. The idea is to include the path to the image in the class used as the MailMergeDatSource and when inserting the field, set its ImageUri property to the path.
IncludePictureField pictureField =
new
IncludePictureField() { ImageUri =
this
.dataContext.SelectedItem.BarcodeImage };
this
.radRichTextBox.InsertField(pictureField, FieldDisplayMode.Result);
I hope this is useful.
Regards,
Petya
Telerik
Hi Petya,
thanks i tried it out, but do you have an example with RadBarCode an RadRichTextBoX?
thanks
best regards
rene
hi,
the problem is, the user could add a couple of barcods on the form and each barcode could be a other type of.
To add a image is not the problem, but i can't fix it with barcods...
thanks
I'm not sure I properly understand the troubles you are facing. Do you mean that your users need to be able to add barcodes in the document run-time?
I'm sending you a demo showing how you can evaluate an IncludePictureField to a barcode image. You can run the example, insert a field from the Mailings tab and then preview the fields to see the barcode image.
If it doesn't fit the result that you are trying to achieve please elaborate on the requirements.
Regards,
Petya
Telerik
Hi,
yes we like to build template for the business Software. On createn time of the template, it must be possible to create <n> of
Barcods. On runtime the data came out of the business Software.
i'm sorry but i can't get you example run. Error:
Fehler 60 Das Tag "RadRichTextBoxRibbonUI" ist im XML-Namespace "http://schemas.telerik.com/2008/xaml/presentation" nicht vorhanden. Zeile 12 Position 10. C:\Users\Rene\Desktop\test\RadBarcodeMailMergeDemo\MainWindow.xaml 12 10 RadBarcodeMailMergeDemo
Thanks
Rene
Please make sure the assembly references I've added to the project are properly resolved to paths from your file system prior building the project. You can see them in the .proj file or in Visual Studio.
If you're still unable to build this please let me know which is the exact version of the suite you're using.
Regards,
Petya
Telerik