internal static void CreateKitTag(Product product, int quantity, string kitName) { float width = (float)72 * (float)3.14961; // 72 pixels * 3.14 inches float height = (float)72 * (float)1.65; //float height = (float)72 * (float)1.5748; // 72 pixeis * 1.57 inches Pdf pdf = new Pdf(@".\tag.pdf", new iTextSharp.text.Rectangle(width, height), new int[] { 10, 10, -5, -5 }); pdf.Document.Open(); pdf.AddParagraphBold("KIT: " + kitName, 0); pdf.AddBigTitle(product.CodeClient, 0); pdf.AddTitle("Qtd: " + quantity.ToString(), 0); pdf.AddParagraphBold("Código BSC: " + product.CodeBSC, -1); pdf.AddParagraphBold("Origem: " + Address.GetAddressString(product.Address_Id), -1); pdf.Document.Close(); }
internal static void CreateProductionLineTag(string codeCliente, string productDescription, string lineAddress) { float width = (float)72 * (float)3.14961; // 72 pixels * 3.14 inches float height = (float)72 * (float)1.65; //float height = (float)72 * (float)1.5748; // 72 pixeis * 1.57 inches Pdf pdf = new Pdf(@".\tag.pdf", new iTextSharp.text.Rectangle(width, height), new int[] { 10, 10, -5, -5 }); pdf.Document.Open(); pdf.AddHugeTitle(codeCliente, 0); pdf.AddParagraphBold(productDescription, 0); pdf.BreakLine(); pdf.AddTitle(lineAddress, 1); pdf.Document.Close(); }
internal static void CreateProductTag(Product product, string destination) { float width = (float)72 * (float)3.14961; // 72 pixels * 3.14 inches float height = (float)72 * (float)1.65; // 72 pixeis * 1.65 inches //float height = (float)72 * (float)1.5748; // 72 pixeis * 1.57 inches Pdf pdf = new Pdf(@".\tag.pdf", new iTextSharp.text.Rectangle(width, height), new int[] { 10, 10, -5, -5 }); pdf.Document.Open(); pdf.AddSmallTitle("BÖLLHOFF SERVICE CENTER", 0); pdf.AddParagraphBold("CÓDIGO BÖLLHOFF: " + product.CodeBSC, -1); pdf.AddParagraphBold("ORIGEM: " + Address.GetAddressString(product.Address_Id), -1); pdf.AddParagraphBold("CÓDIGO CLIENTE: " + product.CodeClient, -1); pdf.AddParagraphBold("DESCRIÇÃO: " + product.Description, -1); pdf.AddParagraphBold("ENDEREÇO NA LINHA: " + destination, -1); pdf.Document.Close(); }