Subversion Repositories SmartDukaan

Rev

Rev 670 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 670 Rev 676
Line 218... Line 218...
218
	     table.addCell(addressCell);
218
	     table.addCell(addressCell);
219
	     
219
	     
220
	     table.addCell(new Phrase("Do not pay any extra charges to the Courier."));
220
	     table.addCell(new Phrase("Do not pay any extra charges to the Courier."));
221
	     
221
	     
222
	     table.setWidthPercentage(90.0f);
222
	     table.setWidthPercentage(90.0f);
223
	     PdfPCell cell = new PdfPCell (new Paragraph ("Invoice & Billing"));
-
 
224
	     cell.setColspan (2);
-
 
225
	     cell.setHorizontalAlignment (Element.ALIGN_CENTER);
-
 
226
	     //cell.setBackgroundColor (new BaseColor(128, 255, 128));
-
 
227
	     cell.setPadding (10.0f);
-
 
228
	     cell.setBorderColor(BaseColor.WHITE);
-
 
229
	     
-
 
230
	     document.add(table);
-
 
231
	
-
 
232
	     //document.add(new Paragraph("Test Invoice is going to be here.",barCode));
-
 
233
	     //document.add(new Paragraph(new Date().toString()));
-
 
234
	     
-
 
235
	     
223
	     
-
 
224
	     document.add(table);  
236
	     document.close();
225
	     document.close();
237
	//             file.close();
-
 
238
	     baosPDF.close();
226
	     baosPDF.close();
239
	     } catch (Exception e) {
227
	     } catch (Exception e) {
240
	    	 e.printStackTrace();
228
	    	 e.printStackTrace();
241
	     }
229
	     }
242
	     return baosPDF;
230
	     return baosPDF;