Datamax Mark Iii - Windows C# Sdk Follow

0
Avatar
Legacy Poster

Hello
I need help for csharp development
Datamax-O'Neil SDK for Windows Desktop (C#) version 2.1.5.3

I would like to know how I can print image (Bitmap) and text in the same label

I tried the following command but unfortunately it just print an image

I want to print image, barcode and text in the same label

Regards
Marcel

docDPL.Clear();

Bitmap anImage = new Bitmap(DatamaxTest.Properties.Resources.tim);
paramDPL.Rotate = ParametersDPL.Rotation.Rotate_0;
docDPL.WriteImage(anImage, DocumentDPL.ImageType.Other, 106, 290, paramDPL);


docDPL.HeatSettings = 20;
docDPL.WriteTextInternalBitmapped(" I212 TM 04005008 Cod. Area 49", 2, 128, 37);
docDPL.WriteTextInternalBitmapped(" TIM CHIP - 0440 - INFINITY LGS - 049", 2, 110, 37);
paramDPL.FontHeight = 09;
paramDPL.FontWidth = 09;
docDPL.WriteTextScalable("Num. Tel. *(49) 99110132", "00", 10, 44, paramDPL);
docDPL.WriteTextScalable(iccid, "00", 60, 64, paramDPL);
docDPL.WriteTextScalable("09/2012", "00", 10, 300, paramDPL);




paramDPL.SymbolHeight = 30;
docDPL.WriteBarCode("d", iccid, 72, 42, paramDPL);
paramDPL.WideBarWidth = 1;
paramDPL.NarrowBarWidth = 1;
docDPL.WriteBarCode("e", "(49) 99110132", 23, 42, paramDPL);
paramDPL.SymbolHeight = 50;
paramDPL.WideBarWidth = 1;
paramDPL.NarrowBarWidth = 2;
docDPL.WriteBarCode("F", "7899041283694", 42, 264,paramDPL);




return docDPL.GetDocumentData();

3 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

I suggest you take a look at using BarTender for your document design, and use one of the various options for automating it for printing.  The below white paper will get you started:

 

http://www.seagullscientific.com/media/101563/bartender-integration-methods-201511.pdf

0
Avatar
Legacy Poster
Comment actions Permalink

Hello
I need help for csharp development
Datamax-O'Neil SDK for Windows Desktop (C#) version 2.1.5.3

I would like to know how I can print image (Bitmap) and text in the same label

I tried the following command but unfortunately it just print an image

I want to print image, barcode and text in the same label

Regards
Marcel

docDPL.Clear();

Bitmap anImage = new Bitmap(DatamaxTest.Properties.Resources.tim);
paramDPL.Rotate = ParametersDPL.Rotation.Rotate_0;
docDPL.WriteImage(anImage, DocumentDPL.ImageType.Other, 106, 290, paramDPL);


docDPL.HeatSettings = 20;
docDPL.WriteTextInternalBitmapped(" I212 TM 04005008 Cod. Area 49", 2, 128, 37);
docDPL.WriteTextInternalBitmapped(" TIM CHIP - 0440 - INFINITY LGS - 049", 2, 110, 37);
paramDPL.FontHeight = 09;
paramDPL.FontWidth = 09;
docDPL.WriteTextScalable("Num. Tel. *(49) 99110132", "00", 10, 44, paramDPL);
docDPL.WriteTextScalable(iccid, "00", 60, 64, paramDPL);
docDPL.WriteTextScalable("09/2012", "00", 10, 300, paramDPL);




paramDPL.SymbolHeight = 30;
docDPL.WriteBarCode("d", iccid, 72, 42, paramDPL);
paramDPL.WideBarWidth = 1;
paramDPL.NarrowBarWidth = 1;
docDPL.WriteBarCode("e", "(49) 99110132", 23, 42, paramDPL);
paramDPL.SymbolHeight = 50;
paramDPL.WideBarWidth = 1;
paramDPL.NarrowBarWidth = 2;
docDPL.WriteBarCode("F", "7899041283694", 42, 264,paramDPL);




return docDPL.GetDocumentData();

 

Hi there,

 

I had the same problem and obviously not willing to get bar tender to do the job... I re-written the DocumentDPL class and it's working great...

 

Let me know if you are willing to do this so I will sum up what I've changed and toss it to you.

 

 

Regards,

Charles

0
Avatar
Jose Santiago
Comment actions Permalink

Charles, Could you please share your solution to this issue? Would really appreciate it, having a tough time with this as well. Thanks!

Please sign in to leave a comment.