svn commit: r759235 - /ofbiz/trunk/framework/example/src/org/ofbiz/example/ExamplePrintServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r759235 - /ofbiz/trunk/framework/example/src/org/ofbiz/example/ExamplePrintServices.java

doogie-3
Author: doogie
Date: Fri Mar 27 16:57:05 2009
New Revision: 759235

URL: http://svn.apache.org/viewvc?rev=759235&view=rev
Log:
Fix lines that *only* have whitespace.

Modified:
    ofbiz/trunk/framework/example/src/org/ofbiz/example/ExamplePrintServices.java

Modified: ofbiz/trunk/framework/example/src/org/ofbiz/example/ExamplePrintServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/src/org/ofbiz/example/ExamplePrintServices.java?rev=759235&r1=759234&r2=759235&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/src/org/ofbiz/example/ExamplePrintServices.java (original)
+++ ofbiz/trunk/framework/example/src/org/ofbiz/example/ExamplePrintServices.java Fri Mar 27 16:57:05 2009
@@ -64,7 +64,7 @@
         String reportScreenName = "ExampleReport";
         Map<String, Object> workContext = FastMap.newInstance();
         workContext.putAll(context);
-
+
         // render a screen to get the XML document
         Writer reportWriter = new StringWriter();
         ScreenRenderer reportScreenRenderer = new ScreenRenderer(reportWriter, null, htmlScreenRenderer);
@@ -72,7 +72,7 @@
 
         // put the exampleId in the screen context, is a parameter coming into the service
         //reportScreenRenderer.getContext().put("exampleId", context.get("exampleId"));
-
+
         try {
             reportScreenRenderer.render(screenLocation, reportScreenName);
         } catch (GeneralException e) {
@@ -106,13 +106,13 @@
             // TODO Auto-generated catch block
             e.printStackTrace();
         }
-
-
+
+
         /*
         // set the content type and length
         response.setContentType("application/pdf");
         response.setContentLength(out.size());
-
+
         // write to the browser
         try {
             out.writeTo(response.getOutputStream());
@@ -121,14 +121,14 @@
             throw new ViewHandlerException("Unable write to browser OutputStream", e);
         }
         */
-
+
         DocFlavor docFlavor = DocFlavor.BYTE_ARRAY.PDF;
         Doc myDoc = new SimpleDoc(out.toByteArray(), docFlavor, null);
         PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
         aset.add(new Copies(1));
         //aset.add(MediaSize.A4);
         aset.add(Sides.ONE_SIDED);
-
+
         PrintService[] services = PrintServiceLookup.lookupPrintServices(docFlavor, aset);
         if (services.length > 0) {
             DocPrintJob job = services[0].createPrintJob();