View previous topic :: View next topic |
Author |
Message |
aknuth
Joined: 23 Mar 2007 Posts: 16 Location: Berlin
|
Posted: Fri Mar 23, 2007 11:41 pm Post subject: Barcode using MigraDoc |
|
|
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. |
|
Back to top |
|
|
aknuth
Joined: 23 Mar 2007 Posts: 16 Location: Berlin
|
Posted: Sat Mar 24, 2007 3:41 pm Post subject: Re: Barcode using MigraDoc |
|
|
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. |
|
|
Back to top |
|
|
aknuth
Joined: 23 Mar 2007 Posts: 16 Location: Berlin
|
Posted: Sat Mar 24, 2007 4:34 pm Post subject: Re: Barcode using MigraDoc |
|
|
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. |
|
|
|
Back to top |
|
|
|