<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jandersonfc</title>
	<atom:link href="http://www.jandersonfc.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jandersonfc.com</link>
	<description>Desenvolvedor Adobe Flex, Java e PHP.</description>
	<lastBuildDate>Fri, 03 Sep 2010 17:32:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Design Patterns para projetos Flex 4 #flexdp #soudev</title>
		<link>http://www.jandersonfc.com/design-patterns-para-projetos-flex-4-flexdp-soudev/</link>
		<comments>http://www.jandersonfc.com/design-patterns-para-projetos-flex-4-flexdp-soudev/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 17:32:47 +0000</pubDate>
		<dc:creator>jandersonfc</dc:creator>
				<category><![CDATA[Pronunciamento]]></category>

		<guid isPermaLink="false">http://www.jandersonfc.com/?p=690</guid>
		<description><![CDATA[E aí galera, hoje venho com uma novidade ótima para galera #soudev que usa #flex em seus projetos, junto com a RiaCycle preparamos um curso 100% prático de como Aplicar Padrões de projetos em seus projetos, nesse curso vocês também terão a oportunidade de conhecer e usar os principais frameworks para o flex e ainda [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.jandersonfc.com%2Fdesign-patterns-para-projetos-flex-4-flexdp-soudev%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.jandersonfc.com%2Fdesign-patterns-para-projetos-flex-4-flexdp-soudev%2F&amp;source=jandersonfc&amp;style=normal" height="61" width="50" title="Design Patterns para projetos Flex 4 #flexdp #soudev" alt=" Design Patterns para projetos Flex 4 #flexdp #soudev" /><br />
			</a>
		</div>
<p>E aí galera, hoje venho com uma novidade ótima para galera #soudev que usa #flex em seus projetos, junto com a RiaCycle preparamos um curso 100% prático de como Aplicar Padrões de projetos em seus projetos, nesse curso vocês também terão a oportunidade de conhecer e usar os principais frameworks para o flex e ainda vamos hackear o código fonte desses frameworks para analisarmos qual os Padrões de projetos que os mesmos usam. Para mais detalhes do Curso como preço, grade completa e requisitos mínimos para participar é só acessarem o link da página do Curso abaixo:</p>
<p><a href="http://www.riacycle.com/flexdp/index.php" target="_blank"><strong>Design Patterns para projetos Flex 4</strong></a></p>
<p>Espero vocês lá <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Design Patterns para projetos Flex 4 #flexdp #soudev" /> </p>
<p>Cumps.</p>
</div>Similar Posts:<ul><li><a href="http://www.jandersonfc.com/ii-controleatividade-analise-de-requisitos/" rel="bookmark" title="06/02/2009">II. ControleAtividade &#8211; Análise de Requisitos</a></li>

<li><a href="http://www.jandersonfc.com/flexmania-2010-disponibilizando-codigo-fonte/" rel="bookmark" title="10/07/2010">#flexmania 2010 &#8211; disponibilizando código fonte</a></li>

<li><a href="http://www.jandersonfc.com/ciclo-de-desenvolvimento-dos-projetos/" rel="bookmark" title="31/01/2009">I. ControleAtividade &#8211; Ciclo de Desenvolvimento</a></li>

<li><a href="http://www.jandersonfc.com/pomodo-app-air-para-controlar-seus-pomodoros/" rel="bookmark" title="24/11/2009">#PomoDo &#8211; app air para controlar seus pomodoros</a></li>

<li><a href="http://www.jandersonfc.com/soudev-entenda-essa-campanha-e-participe/" rel="bookmark" title="29/01/2010">#soudev Entenda essa Campanha e Participe!</a></li>
</ul><!-- Similar Posts took 3.926 ms --><img src="http://www.jandersonfc.com/?ak_action=api_record_view&id=690&type=feed" alt=" Design Patterns para projetos Flex 4 #flexdp #soudev"  title="Design Patterns para projetos Flex 4 #flexdp #soudev" />]]></content:encoded>
			<wfw:commentRss>http://www.jandersonfc.com/design-patterns-para-projetos-flex-4-flexdp-soudev/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>#soudev social beta [bastidores]</title>
		<link>http://www.jandersonfc.com/soudev-social-beta-bastidores/</link>
		<comments>http://www.jandersonfc.com/soudev-social-beta-bastidores/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 11:00:29 +0000</pubDate>
		<dc:creator>jandersonfc</dc:creator>
				<category><![CDATA[Pronunciamento]]></category>

		<guid isPermaLink="false">http://www.jandersonfc.com/?p=682</guid>
		<description><![CDATA[E aí galera, hoje estou muito feliz, ontem dia 26/08/2010 inauguramos a rede social dos desenvolvedores www.soudev.com.br Como a maioria deve saber eu sou o criador da hashtag #soudev no twitter que hoje posso afirmar que é uma das poucas coisas úteis no twitter, falamos do dia dia de um desenvolvedor seja ele web, desktop, [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.jandersonfc.com%2Fsoudev-social-beta-bastidores%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.jandersonfc.com%2Fsoudev-social-beta-bastidores%2F&amp;source=jandersonfc&amp;style=normal" height="61" width="50" title="#soudev social beta [bastidores]" alt=" #soudev social beta [bastidores]" /><br />
			</a>
		</div>
<p>E aí galera, hoje estou muito feliz, ontem dia 26/08/2010 inauguramos a rede social dos desenvolvedores <a href="http://www.soudev.com.br" target="_blank">www.soudev.com.br</a></p>
<p><a href="http://www.soudev.com.br/"><img class="aligncenter" title="Soudev Social" src="http://www.soudev.com.br/soudev.jpg" alt="soudev #soudev social beta [bastidores]" width="250" height="200" /></a></p>
<p>Como a maioria deve saber eu sou o criador da hashtag #soudev no twitter que hoje posso afirmar que é uma das poucas coisas úteis no twitter, falamos do dia dia de um desenvolvedor seja ele web, desktop, mobile e nossas infinitas linguagens de programação, uma verdadeira ferramenta de comunicação e informação rápida entre os desenvolvedores.</p>
<p><em>Obs. Se você não participa ainda comece agora, mande um link útil para os devs com a tag #soudev, será um prazer compartilhar informação com você no twiiter :</em>D</p>
<p>Já faz um tempo que eu e uma equipe, que totalizamos 7 desenvolvedores, começamos a esboçar a criação de uma extensão dessa idéia criada no twitter, arquitetura vai algumas implementações vem inauguramos ontem o #soudev beta. Os resultados foram bem positivos <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' title="#soudev social beta [bastidores]" /> </p>
<p><strong>1787 visitas</strong></p>
<p><strong>120 #soudev</strong></p>
<p>Também fomos bloqueados N vezes pelo servidor de email acusados de spam, quase tudo que acontece no #soudev a galera é notificado por email então já viu né [lembrei os bons tempos de sql]</p>
<p>Então venho através deste post te convidar para participar dessa rede social, funciona muito parecido com o twitter e até mesmo integrado com o mesmo, também colocamos um chat lá que tenho certeza vai ser o ambiente de muito bate papo nerd e dúvidas de desenvolvimento, só na lista de novidades temos 7 itens <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' title="#soudev social beta [bastidores]" /> , então participe, nos ajude a criar um ambiente que seja produtivo, sociável e útil para todos nós, aproveite que o  proxy não bloqueia <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' title="#soudev social beta [bastidores]" /> . venha nos ajudar a criar uma rede social #soudev para os #soudev.</p>
<p>Cumps.</p>
</div>Similar Posts:<ul><li><a href="http://www.jandersonfc.com/soudev-entenda-essa-campanha-e-participe/" rel="bookmark" title="29/01/2010">#soudev Entenda essa Campanha e Participe!</a></li>

<li><a href="http://www.jandersonfc.com/o-poder-da-network/" rel="bookmark" title="07/04/2010">O poder da network</a></li>

<li><a href="http://www.jandersonfc.com/soudev-agora-e-pra-valer/" rel="bookmark" title="04/06/2010">#soudev &#8211; agora é pra valer</a></li>

<li><a href="http://www.jandersonfc.com/twitter-tools-plugin-para-wordpress/" rel="bookmark" title="28/02/2009">Twitter Tools (Plugin para WordPress)</a></li>

<li><a href="http://www.jandersonfc.com/flexmania-2010-disponibilizando-codigo-fonte/" rel="bookmark" title="10/07/2010">#flexmania 2010 &#8211; disponibilizando código fonte</a></li>
</ul><!-- Similar Posts took 3.838 ms --><img src="http://www.jandersonfc.com/?ak_action=api_record_view&id=682&type=feed" alt=" #soudev social beta [bastidores]"  title="#soudev social beta [bastidores]" />]]></content:encoded>
			<wfw:commentRss>http://www.jandersonfc.com/soudev-social-beta-bastidores/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (11)</title>
		<link>http://www.jandersonfc.com/tutorial-java-flex-ireport-na-pratica-11/</link>
		<comments>http://www.jandersonfc.com/tutorial-java-flex-ireport-na-pratica-11/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 19:17:38 +0000</pubDate>
		<dc:creator>jandersonfc</dc:creator>
				<category><![CDATA[#JAVA + FLEX NA PRÁTICA]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[dica]]></category>
		<category><![CDATA[ireport]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[doc]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ods]]></category>
		<category><![CDATA[odt]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[relatório]]></category>
		<category><![CDATA[xls]]></category>

		<guid isPermaLink="false">http://www.jandersonfc.com/?p=669</guid>
		<description><![CDATA[TIPO DE SAÍDAS DE RELATÓRIOS COM IREPORT No último post deste tutorial fiz um screencast explicando um modo de criar relatórios usando ireport + java + flex. Nesse exemplo usei nossas próprias entidades para criar os relatórios assim evitando até em nossos relatórios a necessidade de usar instruções sql. Para quem não assistiu vale a [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.jandersonfc.com%2Ftutorial-java-flex-ireport-na-pratica-11%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.jandersonfc.com%2Ftutorial-java-flex-ireport-na-pratica-11%2F&amp;source=jandersonfc&amp;style=normal" height="61" width="50" title="TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (11)" alt=" TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (11)" /><br />
			</a>
		</div>
<p style="text-align: center;"><strong>TIPO DE SAÍDAS DE RELATÓRIOS COM IREPORT</strong></p>
<p>No último post deste tutorial fiz um screencast explicando um modo de criar relatórios usando ireport + java + flex. Nesse exemplo usei nossas próprias entidades para criar os relatórios assim evitando até em nossos relatórios a necessidade de usar instruções sql. Para quem não assistiu vale a pena conferir (<a title="TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (10)" rel="bookmark" href="../tutorial-java-flex-ireport-na-pratica-10/">TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (10).</a><strong>{</strong>obrigado a todos que assitiram esse screencast, até o momento já obtive + de 1100 visualizações <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (11)" /> <strong>}</strong></p>
<p><strong>Obs.:</strong> <strong><em>Esse post mesmo que sendo continuação de um tutorial pode ser analisado e aproveitado sem a necessidade de acompahar todo o tutorial e também sem a necessidade de ter conhecimento de Flex. Então bom proveito para todos <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (11)" /> </em></strong></p>
<p>o assunto de hoje é uma continuação sobre relatórios com ireport, como muitas pessoas me pediram por email e até via comentário no blog onde eu cometi o desrespeito de não responder <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' title="TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (11)" />  venho através deste post colocar uma listagem de tipo de saídas que podemos ter para os nosso relatórios, tudo com pouco ou nada de esforço, só pelo fato de ter escolhida a ferramenta certa para a situação certa. Assim como tem a saída pdf no nosso projeto poderemos ter essas listadas abaixos(só listei as que normalmente são utilizadas).</p>
<p>vamos nos basear no ServletReport que foi feito no tutorial. Para te ajudar está logo abaixo:</p>
<div class="igBar"><span id="ljava-10"><a href="#" onclick="javascript:showPlainTxt('java-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-10">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ServletReport <span style="color: #000000; font-weight: bold;">extends</span> HttpServlet <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">private</span> ServletContext sc;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">private</span> FactoryService factoryService = <span style="color: #000000; font-weight: bold;">new</span> FactoryService<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #993333;">void</span> init<span style="color: #66cc66;">&#40;</span>ServletConfig config<span style="color: #66cc66;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> ServletException <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; super.<span style="color: #006600;">init</span><span style="color: #66cc66;">&#40;</span>config<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; sc = config.<span style="color: #006600;">getServletContext</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; WebApplicationContext webApplicationContext = WebApplicationContextUtils.<span style="color: #006600;">getWebApplicationContext</span><span style="color: #66cc66;">&#40;</span>sc<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; AutowireCapableBeanFactory autowireCapableBeanFactory = webApplicationContext</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span style="color: #006600;">getAutowireCapableBeanFactory</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; autowireCapableBeanFactory.<span style="color: #006600;">configureBean</span><span style="color: #66cc66;">&#40;</span>factoryService,<span style="color: #ff0000;">"FactoryService"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; @SuppressWarnings<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"unchecked"</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #993333;">void</span> service<span style="color: #66cc66;">&#40;</span>HttpServletRequest request,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; HttpServletResponse response<span style="color: #66cc66;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> ServletException, <a href="http://www.google.com/search?q=allinurl%3AIOException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">IOException</span></a> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; List&lt;?&gt; dados = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AArrayList+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ArrayList</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.google.com/search?q=allinurl%3AFile+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">File</span></a> reportFile = <span style="color: #000000; font-weight: bold;">null</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.google.com/search?q=allinurl%3AHashMap+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">HashMap</span></a> parameters = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AHashMap+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">HashMap</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.google.com/search?q=allinurl%3AString+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">String</span></a> acao = request.<span style="color: #006600;">getParameter</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"acao"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.google.com/search?q=allinurl%3AString+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">String</span></a> where = request.<span style="color: #006600;">getParameter</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"where"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>acao.<span style="color: #006600;">equals</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"estado"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; dados = factoryService.<span style="color: #006600;">estadoService</span>.<span style="color: #006600;">filterReport</span><span style="color: #66cc66;">&#40;</span>where<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; reportFile = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AFile+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">File</span></a><span style="color: #66cc66;">&#40;</span>sc.<span style="color: #006600;">getRealPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"WEB-INF/reports/relatorioEstado.jasper"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #993333;">byte</span><span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span> bytes = <span style="color: #000000; font-weight: bold;">null</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; JRDataSource jrds = <span style="color: #000000; font-weight: bold;">new</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; JRBeanCollectionDataSource<span style="color: #66cc66;">&#40;</span>dados<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; bytes = JasperRunManager.<span style="color: #006600;">runReportToPdf</span><span style="color: #66cc66;">&#40;</span>reportFile.<span style="color: #006600;">getPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>,parameters, jrds<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span>JRException e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bytes != <span style="color: #000000; font-weight: bold;">null</span> &amp;&amp; bytes.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; response.<span style="color: #006600;">setContentType</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"application/pdf"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; response.<span style="color: #006600;">setContentLength</span><span style="color: #66cc66;">&#40;</span>bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; ServletOutputStream ouputStream = response.<span style="color: #006600;">getOutputStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; ouputStream.<span style="color: #006600;">write</span><span style="color: #66cc66;">&#40;</span>bytes, <span style="color: #cc66cc;color:#800000;">0</span>, bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; ouputStream.<span style="color: #006600;">flush</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; ouputStream.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>no servlet acima temos o exemplo de um relatório saindo em um pdf, agora do try catch para baixo podemos mudar nosso tipo de saída, vamos a listagem abaixo:</p>
<p><strong>XLS</strong> - Excel</p>
<div class="igBar"><span id="ljava-11"><a href="#" onclick="javascript:showPlainTxt('java-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-11">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JasperPrint jasperPrint = JasperFillManager.<span style="color: #006600;">fillReport</span><span style="color: #66cc66;">&#40;</span>reportFile.<span style="color: #006600;">getPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, parameters, jrds<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JExcelApiExporter xlsExporter = <span style="color: #000000; font-weight: bold;">new</span> JExcelApiExporter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a> xlsReport = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; xlsExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">JASPER_PRINT</span>,jasperPrint<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; xlsExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">OUTPUT_STREAM</span>,xlsReport<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; xlsExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRXlsExporterParameter.<span style="color: #006600;">IS_ONE_PAGE_PER_SHEET</span>,<a href="http://www.google.com/search?q=allinurl%3ABoolean+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Boolean</span></a>.<span style="color: #000000; font-weight: bold;">TRUE</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; xlsExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRXlsExporterParameter.<span style="color: #006600;">IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS</span>,<a href="http://www.google.com/search?q=allinurl%3ABoolean+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Boolean</span></a>.<span style="color: #000000; font-weight: bold;">TRUE</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; xlsExporter.<span style="color: #006600;">exportReport</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; bytes = xlsReport.<span style="color: #006600;">toByteArray</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bytes != <span style="color: #000000; font-weight: bold;">null</span> &amp;&amp; bytes.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentType</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"application/vnd.ms-excel"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentLength</span><span style="color: #66cc66;">&#40;</span>bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; xlsReport.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServletOutputStream ouputStream = response.<span style="color: #006600;">getOutputStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">write</span><span style="color: #66cc66;">&#40;</span>bytes, <span style="color: #cc66cc;color:#800000;">0</span>, bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">flush</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">return</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>RTF</strong></p>
<div class="igBar"><span id="ljava-12"><a href="#" onclick="javascript:showPlainTxt('java-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-12">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JasperPrint jasperPrint = JasperFillManager.<span style="color: #006600;">fillReport</span><span style="color: #66cc66;">&#40;</span>reportFile.<span style="color: #006600;">getPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, parameters, jrds<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JRRtfExporter rtfExporter = <span style="color: #000000; font-weight: bold;">new</span> JRRtfExporter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a> rtfByte = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; rtfExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">JASPER_PRINT</span>,jasperPrint<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; rtfExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">OUTPUT_STREAM</span>,rtfByte<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; rtfExporter.<span style="color: #006600;">exportReport</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; bytes = rtfByte.<span style="color: #006600;">toByteArray</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bytes != <span style="color: #000000; font-weight: bold;">null</span> &amp;&amp; bytes.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentType</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"application/rtf"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentLength</span><span style="color: #66cc66;">&#40;</span>bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; rtfByte.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServletOutputStream ouputStream = response.<span style="color: #006600;">getOutputStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">write</span><span style="color: #66cc66;">&#40;</span>bytes, <span style="color: #cc66cc;color:#800000;">0</span>, bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">flush</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">return</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>HTML</strong></p>
<div class="igBar"><span id="ljava-13"><a href="#" onclick="javascript:showPlainTxt('java-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-13">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JasperPrint jasperPrint = JasperFillManager.<span style="color: #006600;">fillReport</span><span style="color: #66cc66;">&#40;</span>reportFile, parameters, jrds<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JRHtmlExporter htmlExporter = <span style="color: #000000; font-weight: bold;">new</span> JRHtmlExporter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a> htmlByte = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; htmlExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">JASPER_PRINT</span>,jasperPrint<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; htmlExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JRExporterParameter.<span style="color: #006600;">OUTPUT_STREAM</span>, htmlByte<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; htmlExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRHtmlExporterParameter.<span style="color: #006600;">IS_USING_IMAGES_TO_ALIGN</span>,<span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; htmlExporter.<span style="color: #006600;">exportReport</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; bytes = htmlByte.<span style="color: #006600;">toByteArray</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bytes != <span style="color: #000000; font-weight: bold;">null</span> &amp;&amp; bytes.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentType</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"text/html;charset=UTF-8"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentLength</span><span style="color: #66cc66;">&#40;</span>bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; htmlByte.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServletOutputStream ouputStream = response.<span style="color: #006600;">getOutputStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">write</span><span style="color: #66cc66;">&#40;</span>bytes, <span style="color: #cc66cc;color:#800000;">0</span>, bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">flush</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">return</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>CSV</strong></p>
<div class="igBar"><span id="ljava-14"><a href="#" onclick="javascript:showPlainTxt('java-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-14">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JasperPrint jasperPrint = JasperFillManager.<span style="color: #006600;">fillReport</span><span style="color: #66cc66;">&#40;</span>reportFile.<span style="color: #006600;">getPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, parameters, jrds<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JRCsvExporter csvExporter = <span style="color: #000000; font-weight: bold;">new</span> JRCsvExporter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a> csvByte = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; csvExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">JASPER_PRINT</span>,jasperPrint<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; csvExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">OUTPUT_STREAM</span>,csvByte<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; csvExporter.<span style="color: #006600;">exportReport</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; bytes = csvByte.<span style="color: #006600;">toByteArray</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bytes != <span style="color: #000000; font-weight: bold;">null</span> &amp;&amp; bytes.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentType</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"application/csv"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentLength</span><span style="color: #66cc66;">&#40;</span>bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; csvByte.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServletOutputStream ouputStream = response.<span style="color: #006600;">getOutputStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">write</span><span style="color: #66cc66;">&#40;</span>bytes, <span style="color: #cc66cc;color:#800000;">0</span>, bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">flush</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">return</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>TXT</strong></p>
<div class="igBar"><span id="ljava-15"><a href="#" onclick="javascript:showPlainTxt('java-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-15">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JasperPrint jasperPrint = JasperFillManager.<span style="color: #006600;">fillReport</span><span style="color: #66cc66;">&#40;</span>reportFile.<span style="color: #006600;">getPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, parameters, jrds<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JRTxtExporter txtExporter = <span style="color: #000000; font-weight: bold;">new</span> JRTxtExporter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a> txtByte = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; txtExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">JASPER_PRINT</span>,jasperPrint<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; txtExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">OUTPUT_STREAM</span>,txtByte<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; txtExporter.<span style="color: #006600;">exportReport</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; bytes = txtByte.<span style="color: #006600;">toByteArray</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bytes != <span style="color: #000000; font-weight: bold;">null</span> &amp;&amp; bytes.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentType</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"application/txt"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentLength</span><span style="color: #66cc66;">&#40;</span>bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; txtByte.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServletOutputStream ouputStream = response.<span style="color: #006600;">getOutputStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">write</span><span style="color: #66cc66;">&#40;</span>bytes, <span style="color: #cc66cc;color:#800000;">0</span>, bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">flush</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">return</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>DOC</strong> - Word</p>
<div class="igBar"><span id="ljava-16"><a href="#" onclick="javascript:showPlainTxt('java-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-16">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JasperPrint jasperPrint = JasperFillManager.<span style="color: #006600;">fillReport</span><span style="color: #66cc66;">&#40;</span>reportFile.<span style="color: #006600;">getPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, parameters, jrds<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JRRtfExporter docExporter = <span style="color: #000000; font-weight: bold;">new</span> JRRtfExporter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a> docByte = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; docExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">JASPER_PRINT</span>,jasperPrint<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; docExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">OUTPUT_STREAM</span>,docByte<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; docExporter.<span style="color: #006600;">exportReport</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; bytes = docByte.<span style="color: #006600;">toByteArray</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bytes != <span style="color: #000000; font-weight: bold;">null</span> &amp;&amp; bytes.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentType</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"application/msword"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentLength</span><span style="color: #66cc66;">&#40;</span>bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; docByte.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServletOutputStream ouputStream = response.<span style="color: #006600;">getOutputStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">write</span><span style="color: #66cc66;">&#40;</span>bytes, <span style="color: #cc66cc;color:#800000;">0</span>, bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">flush</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">return</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>ODT</strong> - OpenOffice(brOffice) Word</p>
<div class="igBar"><span id="ljava-17"><a href="#" onclick="javascript:showPlainTxt('java-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-17">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JasperPrint jasperPrint = JasperFillManager.<span style="color: #006600;">fillReport</span><span style="color: #66cc66;">&#40;</span>reportFile.<span style="color: #006600;">getPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, parameters, jrds<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JROdtExporter odtExporter = <span style="color: #000000; font-weight: bold;">new</span> JROdtExporter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a> odtByte = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; odtExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">JASPER_PRINT</span>,jasperPrint<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; odtExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">OUTPUT_STREAM</span>,odtByte<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; odtExporter.<span style="color: #006600;">exportReport</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; bytes = odtByte.<span style="color: #006600;">toByteArray</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bytes != <span style="color: #000000; font-weight: bold;">null</span> &amp;&amp; bytes.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentType</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"application/vnd.oasis.opendocument.text"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentLength</span><span style="color: #66cc66;">&#40;</span>bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; odtByte.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServletOutputStream ouputStream = response</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #006600;">getOutputStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">write</span><span style="color: #66cc66;">&#40;</span>bytes, <span style="color: #cc66cc;color:#800000;">0</span>, bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">flush</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">return</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>ODS</strong> - OpenOffice(brOffice) Planilha tipo Excel (SpreadSheet)</p>
<div class="igBar"><span id="ljava-18"><a href="#" onclick="javascript:showPlainTxt('java-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-18">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JasperPrint jasperPrint = JasperFillManager.<span style="color: #006600;">fillReport</span><span style="color: #66cc66;">&#40;</span>reportFile.<span style="color: #006600;">getPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, parameters, jrds<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; JROdsExporter odsExporter = <span style="color: #000000; font-weight: bold;">new</span> JROdsExporter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a> odsByte = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=allinurl%3AByteArrayOutputStream+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">ByteArrayOutputStream</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; odsExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">JASPER_PRINT</span>,jasperPrint<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; odsExporter.<span style="color: #006600;">setParameter</span><span style="color: #66cc66;">&#40;</span>JRExporterParameter.<span style="color: #006600;">OUTPUT_STREAM</span>,odsByte<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; odsExporter.<span style="color: #006600;">exportReport</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; bytes = odsByte.<span style="color: #006600;">toByteArray</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bytes != <span style="color: #000000; font-weight: bold;">null</span> &amp;&amp; bytes.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentType</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"application/vnd.oasis.opendocument.spreadsheet"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; response.<span style="color: #006600;">setContentLength</span><span style="color: #66cc66;">&#40;</span>bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; odsByte.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServletOutputStream ouputStream = response.<span style="color: #006600;">getOutputStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">write</span><span style="color: #66cc66;">&#40;</span>bytes, <span style="color: #cc66cc;color:#800000;">0</span>, bytes.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">flush</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ouputStream.<span style="color: #006600;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">return</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>bem, aí está uma lista bem completa com 9 tipos de saídas(contando com o pdf) para seus relatórios que tenho certeza que vai ser útil!</p>
<p>Cumps. e até a próxima <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (11)" /> </p>
</div>Similar Posts:<ul><li><a href="http://www.jandersonfc.com/tutorial-java-flex-na-pratica-8-datas/" rel="bookmark" title="25/01/2010">TUTORIAL JAVA + FLEX NA PRÁTICA (8) &#8211; Datas</a></li>

<li><a href="http://www.jandersonfc.com/pegar-codigo-fonte-de-sites-remotos/" rel="bookmark" title="18/04/2009">Pegar Código Fonte de Sites Remotos</a></li>

<li><a href="http://www.jandersonfc.com/tutorial-java-flex-na-pratica-66/" rel="bookmark" title="28/05/2009">TUTORIAL JAVA + FLEX NA PRÁTICA 6/6</a></li>

<li><a href="http://www.jandersonfc.com/tutorial-java-flex-na-pratica-76-bonus/" rel="bookmark" title="20/07/2009">TUTORIAL JAVA + FLEX NA PRÁTICA 7/6 &#8211; Bônus</a></li>

<li><a href="http://www.jandersonfc.com/tutorial-java-flex-ireport-na-pratica-10/" rel="bookmark" title="07/03/2010">TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (10)</a></li>
</ul><!-- Similar Posts took 8.007 ms --><img src="http://www.jandersonfc.com/?ak_action=api_record_view&id=669&type=feed" alt=" TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (11)"  title="TUTORIAL JAVA + FLEX + IREPORT NA PRÁTICA (11)" />]]></content:encoded>
			<wfw:commentRss>http://www.jandersonfc.com/tutorial-java-flex-ireport-na-pratica-11/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Developer Experience [SOA] #soudev</title>
		<link>http://www.jandersonfc.com/developer-experience-soa-soudev/</link>
		<comments>http://www.jandersonfc.com/developer-experience-soa-soudev/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 17:56:03 +0000</pubDate>
		<dc:creator>jandersonfc</dc:creator>
				<category><![CDATA[Pronunciamento]]></category>
		<category><![CDATA[SOA]]></category>

		<guid isPermaLink="false">http://www.jandersonfc.com/?p=656</guid>
		<description><![CDATA[Tudo que vou citar aqui não passa de uma dura e árdua realidade de um #soudev, um amigo meu que pediu para não citar o seu nome por vergonha{termina com son e começa com jander..rs } [só vou contar histórias que acredito que valem você saber e meditar] Será um pouco extenso, a mente está [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.jandersonfc.com%2Fdeveloper-experience-soa-soudev%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.jandersonfc.com%2Fdeveloper-experience-soa-soudev%2F&amp;source=jandersonfc&amp;style=normal" height="61" width="50" title="Developer Experience [SOA] #soudev" alt=" Developer Experience [SOA] #soudev" /><br />
			</a>
		</div>
<p><em>Tudo que vou citar aqui não passa de uma dura e árdua realidade de um #soudev, um amigo meu que pediu para não citar o seu nome por vergonha{termina com son e começa com jander..rs } </em>[só vou contar histórias que acredito que valem você saber e meditar]</p>
<p><strong>Será um pouco extenso, a mente está a mil e não paro de tomar café</strong>[senta que lá vem a história]</p>
<p>Nada melhor que ter mesmo que pouco tempo uma experiência de trabalhar em vários códigos fontes e com diferentes ou nenhuma Arquitetura, ver coisas que até Deus dúvida, e mais, funciona! se muda uma vírgula para tudo :@ [acho que tem um if escondido em algum lugar do tipo if (refactoring==true) sefu;]</p>
<p>Então vamos fazer um retrospecto, entender um pouco da história para entender onde eu quero chegar com esse postão{post de itu}.</p>
<p><strong>[VISUAL BASIC 6]</strong></p>
<p>Comecei minha carreira oficialmente em uma empresa pequena, com 4 desenvolvedores e desenvolviamos em vb6. Fiquei super empolgado quando comecei a ver o código e entendê-lo. [minha primeira tarefa foi criar em vb6 um formluário que as informações alimentadas ali alimentavam um contrato feito no word]</p>
<p>Depois de um tempo estudando o código comecei a perceber no campo minado que estava pisando, cada alteração exigia muita atenção e a demora em fazer pequenos ajustes me assustava, então depois de um tempo na empresa junto com o Dono definimos um culpado, o gerente técnico, que deixou o código chegar naquele nível e não aceitava que poderia ser diferente [me lembrei dessa aqui agora <a href="http://www.guj.com.br/posts/list/212287.java" target="_blank">http://www.guj.com.br/posts/list/212287.java</a>] .</p>
<p>Assumi vamos dizer assim a responsabilidade do gerente técnico na sua saída e batiamos na tecla de migrar para o .net mas não foi na minha época que isso aconteceu[boas notícias ontem em saber que estão conseguindo migrar e sumir com aquele código sujo <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Developer Experience [SOA] #soudev" />  ].</p>
<p><strong>PERGUNTA</strong>: Migrar, será essa solução? pelo trabalho que foi tentar migrar acho que fazer do zero será mais legível, porém inviável financeiramente creio eu.</p>
<p><strong>LIÇÃO 1:</strong> Seu código tem que ser limpo e legível e sempre ter a preocupação de crescer saúdavel, não importa se foi feito em Objective-C [peguei pesado hein..rs] , a falta do mesmo pode fazer uma empresa e soudev's estagnar e por mais que tenha sinergia alta entre elas o crescimento da mesma será lento ou como já disse, sensação de estagnado. Porém nessa empresa pequena aprendi a ter responsabilidades além do código e vi de perto como é fácil criar sinergia, coisas que até hoje não presenciei igual, o lado positivo de se trabahar com equipe pequena creio que é essa, espero um dia trabalhar com um grupo menor e de qualidade incomparável, criar sinergia com uma equipe ninja <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' title="Developer Experience [SOA] #soudev" /> .</p>
<p><strong>[JAVA + FLEX]</strong></p>
<p>aqui a brincadeira começou a tomar proporções maiores, ainda uma pequena empresa com 12 desenvolvedores, e eu fazia parte de um grupo de 4 devs que estava criando do zero sistemas para Órgão público usando Java + Flex [ baseado no programa já existente em vb6 ].</p>
<p>Não fiquei muito tempo nessa empresa mas o sufuciente para melhorar meu desempenho e paixão pelo flex, o que mais me dá orgulho foi um gerador de relatórios que fiz em flex [hilário, usei muito drag drop, ObjectHandler 2, ItemRenderer em datagrid sinistro] esse gerador gerava um xml compatível com o que o ireport gera e a biblioteca JaperReport entende... então foi um aprimoramento ótimo e muitas dozes de café para segurar o ritmo insano que dei nesse projeto.</p>
<p><strong>PERGUNTA</strong>: Criar do zero, será essa a solução? sempre fico na dúvida em relação a isso.</p>
<p><strong>LIÇÃO 2</strong>:  Nível técnico não foi um aprendizado vamos dizer assim novo.. e sim aprimoramento como falei, a nível de pessoas aprendi muito a não ter preconceito, pessoas que aparentemente você olha ou é avisado "com ele vc não vai se dar bem" e é exatamente ao contrário, e aprendemos a respeitar profissionais que passam em nossas vidas e nos ensinam muito. O lado negativo foi ver uma empresa pequena querendo ter comportamentos de empresa grande, proxy bloqueando twitter ou blogs, clima de desconfiança e questão de 10min no horário diário realmente fez eu não ficar muito tempo por lá, esse tipo de liderança limita qualquer ambiente criativo, sinergia da equipe e vontade de vestir a camisa pelo líder.</p>
<p><strong>[JAVA]</strong></p>
<p>Atualmente em uma empresa de médio porte que presta serviços para b2w(Americanas, Shoptime e Submarino) e com mais de 100 #soudev's. Tenho aprendido coisas novas todos os dias e em uma velocidade alucinante, e é aqui que quero compartilhar com vocês algumas experiências.</p>
<p>Atualmente na equipe de integração tenho me deparado com um novo mundo[novo pra mim que isso é mais antigo que minha vó <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' title="Developer Experience [SOA] #soudev" />  ] projetos que na verdade são pequenos pedaços de um quebra cabeça, vc nunca vê um todo[muitas das vezes nem sei se tem um todo, da pra viajar legal com isso aqui <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title="Developer Experience [SOA] #soudev" />  ]. A cada momento que vou aprendendo como funciona na prática a arquitetura SOA fico impressionado e preocupado.</p>
<p><strong>Impressionado</strong> - imagina os meus trampos anteriores...</p>
<ul>
<li>de vez de migrar eu iria integrar, ou seja, o que fosse novo faria em outra ferramenta mais atual que através de SOA se e comunicaria com o que tenho em vb6 através de serviços, quando fosse necessário implementar algo novo e/ou refactoring poderia usar outra técnologia e refazer ou simplesmente alterar aquela parte do negócio. SOA faz com que eu não perca tempo reescrevendo tudo de novo outra vez{um bom uso de pleonasmo nesse caso faz bem}</li>
<li>De vez de criar do zero o que já tenho, eu iria integrar... ou seja, tanto no if e no else a implementação é a mesma tirando a necessidade dessa estrutura de condição <img src='http://www.jandersonfc.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title="Developer Experience [SOA] #soudev" /> .</li>
</ul>
<p>Arquitetura SOA nos dá a mesma solução para esses 2 casos, INTEGRAÇÂO. acho que essa é a palavra que você deve gravar nesse momento quando ouvir falar em SOA.</p>
<p><strong>Preocupado</strong> - SOA está morrendo?(assim como o flash player{cara... esse pessoal que matar tudo, bando de assasino!}) MENTIRA. Sério, Estou preocupado com essa fama que SOA ganhou que só serve para aplicações de grande porte... não vejo assim... trabalhei em sistema pequenos como Automação comercial, Financeiro, Compras..etc e vi em todos eles hoje a necessidade de se usar SOA.</p>
<p>Além disso SOA também me faz pensar no serviço em si... onde a responsabilidade de quem presta serviço(#soudev) tendem a ser maior e muitas das vezes responsáveis por uma arquitetura de infraestrutura e/ou Cloud Computing disponibilizando a seus clientes esse serviços de uma forma unificada[sei...isso vai contra em pensar no Domínio de negócio em si, mas infelizmente o domínio tem uma grande possibilidade de sofrer grandes alterções durante seu ciclo... e nem todos podem negar as alterações pedidas no decorrer do projeto... pense em serviço..pense sempre em serviço e tente abstrair o máximo que pode do negócio{não concordou né..eu sabia..mas isso é tópico para outro Post} ]... ainda não é uma realidade mas acho que é uma tendência.</p>
<p>talvez esteja na hora de desmistificar um pouco a Arquitetura SOA e mostrar para todos de uma forma prática que SOA pode sim, ser a Arquitetura que vai te ajudar em um futuro próximo.</p>
<p>Cumps.</p>
</div>Similar Posts:<ul><li><a href="http://www.jandersonfc.com/soudev-social-beta-bastidores/" rel="bookmark" title="27/08/2010">#soudev social beta [bastidores]</a></li>

<li><a href="http://www.jandersonfc.com/soudev-entenda-essa-campanha-e-participe/" rel="bookmark" title="29/01/2010">#soudev Entenda essa Campanha e Participe!</a></li>

<li><a href="http://www.jandersonfc.com/off-nao-vai-desistir-vai/" rel="bookmark" title="13/05/2009">OFF &#8211; Não vai desistir, Vai?</a></li>

<li><a href="http://www.jandersonfc.com/ria-labs-desenvolvimento-de-sistemas-para-internet/" rel="bookmark" title="08/06/2009">RIA Labs &#8211; Desenvolvimento de Sistemas para Internet</a></li>

<li><a href="http://www.jandersonfc.com/experiencia-fail-com-scrum-xp-e-pomodoro/" rel="bookmark" title="24/11/2009">Experiência #fail com Scrum, XP e Pomodoro.</a></li>
</ul><!-- Similar Posts took 4.086 ms --><img src="http://www.jandersonfc.com/?ak_action=api_record_view&id=656&type=feed" alt=" Developer Experience [SOA] #soudev"  title="Developer Experience [SOA] #soudev" />]]></content:encoded>
			<wfw:commentRss>http://www.jandersonfc.com/developer-experience-soa-soudev/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: www.jandersonfc.com @ 2010-09-04 06:32:50 -->