update vor token
This commit is contained in:
@@ -411,35 +411,17 @@ namespace DOCGEN.Klassen
|
||||
|
||||
BarcodeLib.Barcode Barcode = new BarcodeLib.Barcode();
|
||||
System.Drawing.Image barcodeimage = Barcode.Get_LinerBarcode(Barcoded.Symbology.I2of5C, docData.Dokumentid.Substring(9, 13), docData.Dokumentid.Substring(9, 13), "Below", "Arial", 8, 0);
|
||||
//EDOKA_Barcode.EDOKABC bc = new EDOKA_Barcode.EDOKABC();
|
||||
//System.Drawing.Image barcodeimage = bc.getimg("Interleaved 2 of 5 Mod 10", docData.Dokumentid.Substring(9,13), 190, 120);
|
||||
|
||||
// OFFEDK0002024002441185
|
||||
//BarcodeSettings bs = new BarcodeSettings();
|
||||
//bs.Type = BarCodeType.Interleaved25;
|
||||
//bs.ShowBottomText = true;
|
||||
//bs.ShowTopText = false;
|
||||
//bs.BottomText = Documentid.Substring(9, 13); ;
|
||||
//bs.Data = Documentid.Substring(9, 13);
|
||||
////bs.ImageWidth = 200;
|
||||
////bs.ImageHeight = 40;
|
||||
//BarCodeGenerator bg = new BarCodeGenerator(bs);
|
||||
|
||||
//bg.GenerateImage().Save(@"h:\edoka_work\bc.jpg");
|
||||
|
||||
// FileStream imageStream = new FileStream(@"h:\edoka_work\bc.jpg", FileMode.Open, FileAccess.Read);
|
||||
|
||||
|
||||
|
||||
foreach (WSection section in document.Sections)
|
||||
{
|
||||
|
||||
int bchor = 400;
|
||||
int bcver = 700;
|
||||
int bchor = 450;
|
||||
int bcver = 720;
|
||||
|
||||
WPicture picture = new WPicture(document);
|
||||
picture.LoadImage(barcodeimage);
|
||||
picture.Height = 40;
|
||||
picture.Width = 140;
|
||||
picture.Height = 30;
|
||||
picture.Width = 100;
|
||||
picture.VerticalPosition = bcver;
|
||||
picture.HorizontalPosition = bchor;
|
||||
picture.HorizontalOrigin = HorizontalOrigin.Page;
|
||||
@@ -448,8 +430,8 @@ namespace DOCGEN.Klassen
|
||||
|
||||
WPicture picture2 = new WPicture(document);
|
||||
picture2.LoadImage(barcodeimage);
|
||||
picture2.Height = 40;
|
||||
picture2.Width = 140;
|
||||
picture2.Height = 30;
|
||||
picture2.Width = 100;
|
||||
picture2.VerticalPosition = bcver;
|
||||
picture2.HorizontalPosition = bchor;
|
||||
picture2.HorizontalOrigin = HorizontalOrigin.Page;
|
||||
@@ -458,10 +440,13 @@ namespace DOCGEN.Klassen
|
||||
|
||||
//Insert image in Header and Footer of section
|
||||
section.HeadersFooters.Footer.AddParagraph().ChildEntities.Add(picture);
|
||||
section.HeadersFooters.FirstPageFooter.AddParagraph().ChildEntities.Add(picture2);
|
||||
|
||||
|
||||
//section.HeadersFooters.FirstPageFooter.AddParagraph().ChildEntities.Add(picture2);
|
||||
|
||||
if (section.HeadersFooters.FirstPageFooter.Paragraphs.Count < 1)
|
||||
{
|
||||
section.HeadersFooters.FirstPageFooter.AddParagraph();
|
||||
}
|
||||
section.HeadersFooters.FirstPageFooter.Paragraphs[0].ChildEntities.Add(picture2);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user