PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 2:07 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Migradoc Table Barcode
PostPosted: Fri Jun 09, 2017 12:50 am 
Offline

Joined: Fri Jun 09, 2017 12:47 am
Posts: 1
Greetings!

I am attempting to add a barcode to a table in MigraDoc.

The code is as follows.
Code:
Barcode bc = r.Cells[1].Elements.AddBarcode();
            bc.Type = BarcodeType.Barcode39;
            bc.Text = true;
            bc.Code = Id.ToString();
            bc.BearerBars = true;
            bc.LineHeight = 2;
            bc.LineRatio = 2;
            bc.Width = new Unit(100, UnitType.Point);
            bc.Height = new Unit(75, UnitType.Point);


Unfortunately, it seems no combination of property values makes it render.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 09, 2017 3:58 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
Hi!

Maybe this thread is helpful:
viewtopic.php?p=3332#p3332

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 140 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group