.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Solutions to Insert Barcode in DWG using C#

10 REPLIES 10
Reply
Message 1 of 11
bibeputt
2058 Views, 10 Replies

Solutions to Insert Barcode in DWG using C#

Hello Everybody

Just looking out some options to insert Barcode / Barcode Image inside .dwg file using c#.

Please share your experience if anybody has ever worked on that.

Thanks
Ashish...
10 REPLIES 10
Message 2 of 11
masewee
in reply to: bibeputt

No one replied? Ok. I happen to read this post which is the topic I am interested in. I have experience of creating barcode in C# ASP.NET. At that time, I used that third party control. Nowadays, I think the easily way to create barcode is to use a third party control. You just need to install that tool into your program and then follow the guides of barcode creation, like this barcode data encoding guide in C#. So barcode creation becomes very easy.

Message 3 of 11

Some time ago I did a implementation with Hatch and QR Code, you can get the source code at http://labs.autodesk.com/utilities/qrcodes/

 

One additional point, not implemented on the sample above, was to insert the Hatch as a Block, so the user cannot modify it by accident.

 

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 4 of 11

Barcodes can be as simple as using a font.  QR codes are significantly more complex.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 5 of 11
jakcswe
in reply to: dgorsman

Yes, creating barcode in C# is quite easy with a barcode font. But I think QR Code is not that complex. QR Code is the most commonly used type of barcode.

Message 6 of 11
makaveiljojo
in reply to: bibeputt

Check the sample code of how to generate barcode with C# and insert into document:

C# Sample code

     using KeepAutomation.Barcode.Bean;
BarCode barcode = new BarCode();
barcode.Symbology = KeepAutomation.Barcode.Symbology.Code39;
barcode.CodeToEncode = "111222333";
barcode.ChecksumEnabled = true;
barcode.X = 1;
barcode.Y = 50;
barcode.BarCodeWidth = 100;
barcode.BarCodeHeight = 70;
barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree90;
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel;
barcode.DPI = 72;
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;
barcode.generateBarcodeToImageFile("C://barcode-code39-csharp.gif");

/* Output barcode images to different objects
barcode.generateBarcodeToStream("Stream Object");
barcode.generateBarcodeToGraphics("Graphics Object");
barcode.generateBarcodeToGraphics("HttpResponse Object");
*/
Message 7 of 11
cindy313
in reply to: dgorsman


@dgorsman wrote:

Barcodes can be as simple as using a font.  QR codes are significantly more complex.


why so ?

Message 8 of 11
dgorsman
in reply to: cindy313

http://en.wikipedia.org/wiki/QR_code

 

Now, try building one.  Don't forget the mask.  🙂

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 9 of 11
mindylynn0
in reply to: cindy313

As i know, barcode font can be used for barcode application, also available for QR Code barcode image. But 2d QR Code is a more complex barcode symbology among all common barcodes.

Message 10 of 11
andyadams
in reply to: masewee

Hi,you said you have experience of creating barcode in C# ASP.NET and you used that third party control. However,i don't want to pay for that software,do you have some better ideal of creating barcode in C# ASP.NET???Cat Happy

Message 11 of 11
Keith.Brown
in reply to: andyadams

Not sure if this is what you want but here is a free solution.

 

http://www.codeproject.com/Articles/20823/Barcode-Image-Generation-Library

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost