PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Mar 29, 2024 12:42 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Barcode using MigraDoc
PostPosted: Fri Mar 23, 2007 11:41 pm 
Offline

Joined: Fri Mar 23, 2007 11:37 pm
Posts: 16
Location: Berlin
I saw that the Barcode rendering is still under construction. However I'd like to use it and as there are no samples around I guess that it's not working yet.

Here is what I tried:
Code:
Barcode b = document.Sections[0].Elements.AddBarcode();
b.Top = "10mm";
b.Left = "10mm";
b.Code = "TEST";
b.Type = BarcodeType.Barcode128;
b.Width = "3cm";
b.Height = "1cm";
b.FillFormat.Color = Colors.Black;
b.FillFormat.Visible = true;
b.BearerBars = true;
b.LineHeight = 10;
b.LineRatio = 2;


Regards,
André

and keep up the good work, looks like finally there is a well designed alternative to pdflib.


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 24, 2007 3:41 pm 
Offline

Joined: Fri Mar 23, 2007 11:37 pm
Posts: 16
Location: Berlin
I took a look at the MigraDoc.Rendering.Renderer.Create method. And there are no BarcodeRenderer yet. Is it possible to create an in-memory image using XGraphicsLab and import it in migradoc?

aknuth wrote:
I saw that the Barcode rendering is still under construction. However I'd like to use it and as there are no samples around I guess that it's not working yet.

Here is what I tried:
Code:
Barcode b = document.Sections[0].Elements.AddBarcode();
b.Top = "10mm";
b.Left = "10mm";
b.Code = "TEST";
b.Type = BarcodeType.Barcode128;
b.Width = "3cm";
b.Height = "1cm";
b.FillFormat.Color = Colors.Black;
b.FillFormat.Visible = true;
b.BearerBars = true;
b.LineHeight = 10;
b.LineRatio = 2;


Regards,
André

and keep up the good work, looks like finally there is a well designed alternative to pdflib.


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 24, 2007 4:34 pm 
Offline

Joined: Fri Mar 23, 2007 11:37 pm
Posts: 16
Location: Berlin
Wrote my own BarcodeRenderer class for migradoc. Anyone who is interested please PM me.

aknuth wrote:
I took a look at the MigraDoc.Rendering.Renderer.Create method. And there are no BarcodeRenderer yet. Is it possible to create an in-memory image using XGraphicsLab and import it in migradoc?

aknuth wrote:
I saw that the Barcode rendering is still under construction. However I'd like to use it and as there are no samples around I guess that it's not working yet.

Here is what I tried:
Code:
Barcode b = document.Sections[0].Elements.AddBarcode();
b.Top = "10mm";
b.Left = "10mm";
b.Code = "TEST";
b.Type = BarcodeType.Barcode128;
b.Width = "3cm";
b.Height = "1cm";
b.FillFormat.Color = Colors.Black;
b.FillFormat.Visible = true;
b.BearerBars = true;
b.LineHeight = 10;
b.LineRatio = 2;


Regards,
André

and keep up the good work, looks like finally there is a well designed alternative to pdflib.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 149 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