Hi Dan,
I gave a general algorithm. The actual code will follow this general algorithm.
In your case, if you are trying to write the String directly to the output stream,
it should be "CSpStringOutputStream out = 
(CSpStringOutputStream)CSpider.getOutputStream();"
If you are using Servlets, use "PrintWriter out = new 
PrintWriter(res.getOutputStream());"
If you are using applets, you may need to first get Graphics object and write to it.
And also writing the content type should be: out.print("Content-type: ").
Hope this helps.
-Bhaskara Reddy

"Howarth, Dan" <[EMAIL PROTECTED]> wrote:
>Bhaskara,>>I've tried using your sample code below, but the out.write("Content 
>Type:>application/pdf");
         statement fails with the following compile error:>>Incompatible type for 
method.
         Can't convert java.lang.String to byte[].>        out.write("Content Type: 
application/pdf");
         >>Are you using the code exactly as outlined below in your app?  Any idea>as 
to what
         the problem is.>>                  >-----Original Message----->Sent: 
Wednesday, September
         15, 1999 6:48 PM>>>>Yes!>What seems to be the problem?>styleReports2.0 from 
inetsoft
         is easy to use and is 100% pure java. You can>always use>100% pure java 
products
         by just adding their *.jar files in the CLASSPATH.>>Simple standard algorithm 
to
         use style reports 2.0 with NetD:>    OutputStream out = 
CSpider.getOutputStream();>
            out.write("Content Type: application/pdf"); // replace content type 
as>appropriate.>
            PDFPrinter pdf = new PDFPrinter(out); // replace this with type of>printer 
you
         want.>    StyleSheet report = new StyleSheet();>    // Add all the stuff to 
the report.>
            report.print(pdf.getPrintJob());>    pdf.close();>>If you are using 
applets, see
         styleReports2.0 documentation.>Good luck!>-Bhaskara Reddy>>"Howarth, Dan" 
<[EMAIL PROTECTED]>
         wrote:>>Has anyone used a product called Style Report from a vendor>called 
Inetsoft>Technology>        
         in-conjunction with NetD?  Style Report>is a Java based report>writing tool 
and I'm>   
         having problems with>mapping the data from NetD to the Style 
Report>report.>>If you've>        
         used the product please let me know.  Thanks.>>>Dan>Howarth>Information 
Technology>PG&E>       
         Gas Transmission>210-528-4088>210-321-0911 (fax)>>>>>>PG&E Gas>Transmission 
Texas>     
         and any other company referenced herein which uses the PG&E name or>logo are 
not>      
         the same company as Pacific Gas and Electric Company, the>California utility. 
 These>  
         companies are not regulated by the California Public Utilities>Commission, 
and customers>      
         do not have to buy products from these companies in order to>continue to 
receive>      
         quality regulated services from the 
utility.>_________________________________________________________________________>>For
         help in using, subscribing, and unsubscribing to the discussion>forums, 
please go
         to: http://www.netdynamics.com/support/visitdevfor.html>>For dire need help, 
email:
         [EMAIL PROTECTED]>>>PG&E Gas Transmission Texas and any other company 
referenced
         herein which uses the PG&E name or logo are not the same company as Pacific 
Gas and
         Electric Company, the California utility.  These companies are not regulated 
by the
         California Public Utilities Commission, and customers do not have to buy 
products
         from these companies in order to continue to receive quality regulated 
services from
         the utility.
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to