RichTextBox + Barcode + MailMerge

7 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 17 Jun 2015 Link to this post

    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

  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 22 Jun 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 16 Jul 2015 in reply to Petya Link to this post

    Hi Petya,

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

     thanks
    best regards

    rene

  5. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 16 Jul 2015 in reply to ITA Link to this post

    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

  6. Petya
    Admin
    Petya avatar
    975 posts

    Posted 21 Jul 2015 Link to this post

    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
  7. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 13 Aug 2015 Link to this post

    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

  8. Petya
    Admin
    Petya avatar
    975 posts

    Posted 17 Aug 2015 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready