This is a migrated thread and some comments may be shown as answers.

RichTextBox + Barcode + MailMerge

6 Answers 101 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 17 Jun 2015, 12:43 PM

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

Sort by
0
Petya
Telerik team
answered on 22 Jun 2015, 11:29 AM
Hello Rene,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
ITA
Top achievements
Rank 1
answered on 16 Jul 2015, 10:39 AM

Hi Petya,

 thanks i tried it out, but do you have an example with RadBarCode an RadRichTextBoX?

 thanks
best regards

rene

0
ITA
Top achievements
Rank 1
answered on 16 Jul 2015, 11:06 AM

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

0
Petya
Telerik team
answered on 21 Jul 2015, 12:57 PM
Hello Rene,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
ITA
Top achievements
Rank 1
answered on 13 Aug 2015, 11:29 AM

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

0
Petya
Telerik team
answered on 17 Aug 2015, 02:31 PM
Hi 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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
RichTextBox
Asked by
ITA
Top achievements
Rank 1
Answers by
Petya
Telerik team
ITA
Top achievements
Rank 1
Share this question
or