Subversion Repositories SmartDukaan

Rev

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

Rev 744 Rev 749
Line 143... Line 143...
143
		// Write the workbook to the output stream
143
		// Write the workbook to the output stream
144
		try {
144
		try {
145
			wb.write(baosXLS);
145
			wb.write(baosXLS);
146
			baosXLS.close();
146
			baosXLS.close();
147
		} catch (IOException e) {
147
		} catch (IOException e) {
148
			// TODO Auto-generated catch block
-
 
149
			e.printStackTrace();
148
			e.printStackTrace();
150
		}
149
		}
151
		
150
		
152
		return baosXLS;
151
		return baosXLS;
153
	}
152
	}
Line 169... Line 168...
169
			FileOutputStream f = new FileOutputStream("/home/ashish/Downloads/courier-details.xls");
168
			FileOutputStream f = new FileOutputStream("/home/ashish/Downloads/courier-details.xls");
170
			ByteArrayOutputStream baosXLS = g.generateCourierDetails(1, 1);
169
			ByteArrayOutputStream baosXLS = g.generateCourierDetails(1, 1);
171
			baosXLS.writeTo(f);
170
			baosXLS.writeTo(f);
172
			f.close();
171
			f.close();
173
		} catch (FileNotFoundException e) {
172
		} catch (FileNotFoundException e) {
174
			// TODO Auto-generated catch block
-
 
175
			e.printStackTrace();
173
			e.printStackTrace();
176
		} catch (IOException e) {
174
		} catch (IOException e) {
177
			// TODO Auto-generated catch block
-
 
178
			e.printStackTrace();
175
			e.printStackTrace();
179
		}
176
		}
180
		System.out.println("Successfully generated the detailed courier report");
177
		System.out.println("Successfully generated the detailed courier report");
181
	}
178
	}
182
 
179