I am able to create a DataMatrix when I set the width and height to "0", but when I try to increase it in size to 100x150 I get a generate code of "3".
It works just fine when I put these two properties at "0".
Dim manMatrix As New BarcodeDatamatrix()
Dim manCode As Integer
manMatrix.Options = BarcodeDatamatrix.DM_AUTO
manMatrix.Width = 150
manMatrix.Height = 150
manCode = manMatrix.Generate(Guid.NewGuid.ToString)
Dim dmImage As iTextSharp.text.Image
Try
dmImage = manMatrix.CreateImage
dmImage.SetAbsolutePosition(550, 750)
over.AddImage(dmImage)
Catch ex As Exception
over.SetTextMatrix(450, 365)
over.ShowText(manCode.ToString)
End Try
<<image001.jpg>>
BEGIN:VCARD VERSION:2.1 X-MS-SIGNATURE:YES N;LANGUAGE=en-us:Wilkinson;Glen;M. FN:Glen M. Wilkinson ORG:Dory Services, LLC. TEL;HOME;VOICE:(603) 580-1562 TEL;CELL;VOICE:(603) 770-8195 ADR;WORK;PREF:;;244 Cuyahoga Court;South Lyon;MI;48178;United States of America LABEL;WORK;PREF;ENCODING=QUOTED-PRINTABLE:244 Cuyahoga Court=0D=0A= South Lyon, MI 48178 X-MS-OL-DEFAULT-POSTAL-ADDRESS:2 URL;WORK:www.stabledory.com EMAIL;PREF;INTERNET:[email protected] X-MS-OL-DESIGN;CHARSET=utf-8:<card xmlns="http://schemas.microsoft.com/office/outlook/12/electronicbusinesscards" ver="1.0" layout="left" bgcolor="ffffff"><img xmlns="" align="fit" area="16" use="cardpicture"/><fld xmlns="" prop="name" align="left" dir="ltr" style="b" color="000000" size="10"/><fld xmlns="" prop="org" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="telcell" align="left" dir="ltr" color="000000" size="8"><label align="right" color="626262">Mobile</label></fld><fld xmlns="" prop="telhome" align="left" dir="ltr" color="000000" size="8"><label align="right" color="626262">Home</label></fld><fld xmlns="" prop="email" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="addrwork" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="webwork" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/></card> REV:20090601T133313Z END:VCARD
------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
