Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi Guys,

                                    i discussed the new MailMerge feature with one of our customers yesterday, and we got a request which i dont know how to solve.

                                    We need to create an Mailing which is no Problem with the new features. But i need an Barcode on every document, which is bound to the CustomerId. The Reason for this is we print an Mailing for about 500 Customers. No the final Document (PDF) goes to an external company who print them out, send them to the customer... Then the customer sends back the Letter and the Letter gets scanned. Thats why we need an Barcode with the CustomerID on every Merged Document.

                                    Do you have an Idea how i can solve that with the RichEdit/MailMerge features?

                                    thx
                                    Martin

                                Show all comments
                                • Hi Martin,

                                  Please clarify which of these approaches are appropriate for you?
                                  1. You add a field, like {BarCode ContactId}, and the RichEditControl will generate the barcode image itself.
                                  Or
                                  2. You generate the barcode image in your program (or select it from the database, etc) and than the RichEditControl will insert this image at the appropriate position.

                                  Or maybe you need something different? Please explain this.

                                  Thanks,
                                  Elliot

                                • Hi Elliot,

                                  i just had another idea. I insert the ContactId like * ContactId * and print it with an Code39 Font - then everything works - this solves my task currently. But i am wondering if there are other ways to do it since the devex printing library supports many barcodes.

                                  1. You add a field, like {BarCode ContactId}, and the RichEditControl will generate the barcode image itself. -> would be a cool way - i dont know if that makes sense to you? {BarCode<Type> ContactId} ... ?

                                • Hi Elliot,

                                  i just had another phone call - Code39 is not an option because of its quality. the preferred barcode would be Code128 or something...

                                  I would prefer your first way {BarCode ContactId} if there is some way to do it?

                                • Hi Martin,

                                  Thank you for the explanation.

                                  >>>>
                                  1. You add a field, like {BarCode ContactId}, and the RichEditControl will generate the barcode image itself. -> would be a cool way - i dont know if that makes sense to you? {BarCode<Type> ContactId} ... ?
                                  <<<<
                                  Unfortunately, XtraRichedit doesn't support this functionality. However, we agree with you that it would be great to implement this feature. I've registered a corresponding suggestion in our database, and we'll consider implementing it in the future: MailMerge --- Add support for BARCODE field type (ID:S33003). Please track it to be informed on our progress over this item.

                                  Thanks,
                                  Elliot

                                • Hi Elliot,

                                  thx for the suggestion - but it doenst help me in the current situation... Do you have any Idea how i can integrate an Code128 in an Document?

                                  thx

                                • Hi Martin,

                                  Thank you for the reply.

                                  I understand your issue, but, unfortunately, I can't immediately tell you how to resolve it. We'll examine this issue and contact you as soon as we find a solution. Please bear with us.

                                  Thanks,
                                  Elliot

                                You must  log in  or  register  to leave comments

                                2 Solutions

                                Creation Date
                                Rating
                                Importance
                                Sort by
                                0

                                Hi Martin,

                                Unfortunately, XtraRichedit doesn't support this functionality. I've registered a suggestion in our database, and we'll consider implementing it in the future: Add BarCode field types (ID:S33007). Please track it to be informed on our progress over this item. At present, our developers created a workaround for you. Please review it and let us know whether it helps.

                                P.S. This workaround uses internal classes of the XtraRichEdit control. So, we can't guarantee that it will work in the next product version, as these classes can be changed or removed in next releases.

                                Thanks,
                                Elliot

                                Fields.zip
                                • Hi Elliot,

                                  thx you very much - you Guys are really awesome!! Great Example!!

                                  BTW: S33007 is private?

                                  greets
                                  Martin

                                • Hi ,

                                  Thank you for the reply.

                                  >>>>
                                  BTW: S33007 is private?
                                  <<<<
                                  It appears that the cause of the problem is that I've created a private suggestion. Please accept my sincere apologies for this mistake. At present, I've corrected this situation. So, you can track it to be informed on our progress over this item.

                                  Thanks,
                                  Elliot

                                • Thank you!!

                                • Hi Elliot - your great workaround stopped with 12.1 - BarCodeBrick does not have any Pattern anymore - can you suggest some workaround?

                                You must  log in  or  register  to leave comments
                                0

                                Hi Martin,

                                Thank you for your update.

                                You can create your own class based on the Code128Generator class to avoid this problem. Here is some sample code:

                                	
                                [C#]
                                ... int CalcBarCodeWidth() { if (!brick.AutoModule) //return (int)(brick.Module * (float)calcBarCodeWidthMethod.Invoke(generator, new object[] { ((IBarCodeData)brick).Pattern })) + 1; return (int)(brick.Module * (float)calcBarCodeWidthMethod.Invoke(generator, new object[] { new MyCode128Generator(brick.Text).list })) + 1; else return widthInDocument; } ... public class MyCode128Generator : Code128Generator { public System.Collections.ArrayList list; public MyCode128Generator(string text) : base() { this.list = this.MakeBarCodePattern(text); } } ...

                                Thanks,
                                Elliot

                                • Stephen Murray 07.04.2012

                                  Hi,

                                  I am trying to do nearly the exact same thing. I am using v2011 vol 2. Could you please supply an example project in VB.net

                                  Thanks,
                                  James.

                                • I have attached VB.Net project. Please review it.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Your Privacy - Legal Statements

                                Copyright © 1998-2013 Developer Express Inc.
                                ALL RIGHTS RESERVED
                                All trademarks or registered trademarks
                                are property of their respective owners