Jump to content
We've recently updated our Privacy Statement, available here ×

Problem whit JasperReports in PDF


Recommended Posts

By: Vladimir Aguirre Piedragil - vlad_pax

Problem whit JasperReports in PDF

2003-12-18 10:02

i?m trying to generate a report to PDF on IE, but as result i obtain a jsp file with Chinese characters, seemed a:

 

%PDF-1.4

%珮粤

5 0 obj

<</Filter /FlateDecode

/Length 2004

>>

stream

x愀Xル張8}雎'G斉嗤、凸。ツロリホ児夊ィ棲2・ nタルヒWヘソ・・ヤSタ-`Cレニ]蛹HクHW:E A・F・^@ミz7涇;・シ=樟錞昞(Z・ルe・}ナ_・イL<昕条y;r-モs睡]・ロ5I+g ヲ・ルqーj h%・[2jdラ嬢({b・$7孳粕40・ェ椈鴉ィ65・l・ァE!kD弘

「w・FォSbyカmRャH$福DEp儘 m9zMォTス・yオ蹣・劵]Ⅸイコ(S・ェK-EYs瘁v・2瀝 [ヲ・ル市・Nw・晉0ホ勃・ヨレ鴬゙トG_R・ラs!ミ・%ン泅)嫋ヌt書bu刷ヌ・x・hNBマ晙閔N・朱・オクG喆「・ッb・マV吃守34・例zセ靴Вエ^・4_ョ#4

列:榻Eh

・>キm

d9Fーe)舂イ・!″昕~Ⅶx6iメヌ・ッ螫'_湯カッ肚霾ラ、、・ィvトヒBメ・uナヒB"仄@ミu琮ψ"・}・V]`ルカIャ膊ーョ列稱ホヨムェ・ソ [.・gムaLM・濕┃エ・t椡ミy醵i

アキ楼・Bア マツ#P樰!xムjM・・怡u4pU・・

<・

 

i don't know whta happening, my code is:

 

byte[] bytes =

JasperRunManager.runReportToPdf(

reportFile.getPath(),

parameters,

conn

);

 

response.setContentType("application/pdf");

conn.close();

 

//DESPLIEGUE DE LA INFORMACION

response.setContentLength(bytes.length);

ServletOutputStream ouputStream = response.getOutputStream();

ouputStream.write(bytes, 0, bytes.length);

ouputStream.flush();

ouputStream.close();

}

 

what i need?

 

Thank u.

 

 

 

 

 

By: Vladimir Aguirre Piedragil - vlad_pax

RE: Problem whit JasperReports in PDF

2003-12-18 11:40

My problem was acrobat reader was not installed correctly and versió®£onflict whit acrobat reader.

 

Thank u

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...