[jasperreports-questions] Can I merce 2 report??

2006-05-10 Thread Quang Nguyen
Hi everybody,I work with a report which has more than 200 Static text and parameter. So i cannot put all of them in one report. I have to split them to 4 report (for 4 pages).My problem is when i export to pdf file, it has 4 files for 4 pages, sound not good. I want put all of them in only one pdf file. 
Do you have any solutions for this.Thank you so much.Best Regards.Quang


Re: [jasperreports-questions] How to embed the true type font to pdf file with JasperReport

2005-12-26 Thread Quang Nguyen
Hi,

Thank for your help! My project run! It can export to pdf file with
TTF very good!

Thank you very much!

Cheers,

Quang

On 12/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi Quang,
>
> you just need the TTF directory in the classpath and set
> the filename of the font as pdfFontName="",
> e.g. pdfFontName="Arial.ttf". You have to look for the filename
> at the directory you add to your application classpath.
>
> Or don't you use a jrxml template file? Don't forget to set
> isPdfEmbedded="true".
>
> Kind regards,
>   Marco
>
> >Hi Marco,
> >
> >I see, but I'd like to know how to write java code use jasper report
> >to export the report to pdf file with embeded true type fonts.
> >
> >Merry Christmas and Happy New Year :-)
> >
> >Regards,
> >
> >Quang
> >
> >
> >On 12/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >> Hi Quang,
> >>
> >> I use iReport 0.5.2 and do it like the following:
> >>
> >> 1. The TTF font directory you like to use has to be in
> >>the classpath (startup of iReport and/or start application
> >>that creates PDF)
> >> 2. In iReport choose tab "Font" in properties editor, select
> >>"External TTF font" for PDF font name and choose your
> >>font below with drop down box "True Type font".
> >>In the jrxml file just set pdfFontName=""
> >> 3. Choose "PDF embedded" checkbox to embed the font.
> >>In the jrxml file just set isPdfEmbedded ="true"
> >>
> >> Also Merry Christmas and a Happy New Year to all out there.
> >>
> >> Kind regards,
> >>  Marco
> >>
> >>
> >> >Hi all,
> >> >
> >> >I'm working with JasperReport on export to pdf file function.
> >> >My report is in Vietnamese so it can't be read in Adobe Reader.\
> >> >
> >> >I don't know how to write code to embed the true type font
> >> >(such as Times New Roman, Arial, and so on) to a pdf file.
> >> >
> >> >if possible, can you send me a small example?
> >> >
> >> >Thank you very much.
> >> >Merry Christmas and Happy new Year!
> >> >
> >> >Best regards,
> >> >
> >> >Quang.
> >>
> >
> >
> >---
> >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> >for problems?  Stop!  Download the new AJAX search engine that makes
> >searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> >http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> >___
> >jasperreports-questions mailing list
> >jasperreports-questions@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
>


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] How to embed the true type font to pdf file with JasperReport

2005-12-23 Thread Quang Nguyen
Hi Marco,

I see, but I'd like to know how to write java code use jasper report
to export the report to pdf file with embeded true type fonts.

Merry Christmas and Happy New Year :-)

Regards,

Quang


On 12/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi Quang,
>
> I use iReport 0.5.2 and do it like the following:
>
> 1. The TTF font directory you like to use has to be in
>the classpath (startup of iReport and/or start application
>that creates PDF)
> 2. In iReport choose tab "Font" in properties editor, select
>"External TTF font" for PDF font name and choose your
>font below with drop down box "True Type font".
>In the jrxml file just set pdfFontName=""
> 3. Choose "PDF embedded" checkbox to embed the font.
>In the jrxml file just set isPdfEmbedded ="true"
>
> Also Merry Christmas and a Happy New Year to all out there.
>
> Kind regards,
>  Marco
>
>
> >Hi all,
> >
> >I'm working with JasperReport on export to pdf file function.
> >My report is in Vietnamese so it can't be read in Adobe Reader.\
> >
> >I don't know how to write code to embed the true type font
> >(such as Times New Roman, Arial, and so on) to a pdf file.
> >
> >if possible, can you send me a small example?
> >
> >Thank you very much.
> >Merry Christmas and Happy new Year!
> >
> >Best regards,
> >
> >Quang.
>


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


[jasperreports-questions] How to embed the true type font to pdf file with JasperReport

2005-12-22 Thread Quang Nguyen
Hi all,

I'm working with JasperReport on export to pdf file function.
My report is in Vietnamese so it can't be read in Adobe Reader.\

I don't know how to write code to embed the true type font
(such as Times New Roman, Arial, and so on) to a pdf file.

if possible, can you send me a small example?

Thank you very much.
Merry Christmas and Happy new Year!

Best regards,

Quang.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] exit server on close jasper viewer!

2005-11-28 Thread Quang Nguyen
Hi Teodor,

I don't find: JasperViewer.viewReport(jasperPrint, false, false);
It only is:
JasperViewer.viewReport(java.lang.String sourceFile, boolean
isXMLFile, boolean isExitOnClose)

I used: JasperViewer.viewReport(jasperPrint, boolean isExitOnClose);

But it still stop the server.

Can you test this method?

Thank you so much.

Regards,

Quang

On 11/28/05, Teodor Danciu <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Actually, the method to call is the one with three parameters and the
> third parameter is what you need:
>
> JasperViewer.viewReport(jasperPrint, false, false);
>
> I hope this helps.
> Teodor
>
>
> Quang Nguyen wrote:
>
> >Hi,
> >
> >I have tried with your solution: JasperViewer.viewReport(jasperPrint,false);
> >
> >but it still stop server, I don't know why!
> >
> >Do you have another solution?
> >
> >Thank you so much!
> >
> >Regards,
> >
> >Quang
> >
> >
> >---
> >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> >for problems?  Stop!  Download the new AJAX search engine that makes
> >searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> >http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> >___
> >jasperreports-questions mailing list
> >jasperreports-questions@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
> >
> >
> >
>
>


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


[jasperreports-questions] exit server on close jasper viewer!

2005-11-27 Thread Quang Nguyen
Hi,

I have tried with your solution: JasperViewer.viewReport(jasperPrint,false);

but it still stop server, I don't know why!

Do you have another solution?

Thank you so much!

Regards,

Quang


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Printer control

2005-11-04 Thread Quang Nguyen
Hi all,I'm Quang, from Vietnam.I use Jasper report on a web application (I used Tomcat web server). It's normal with exporting to Pdf file function, but viewing report with Jasper Viewer has a problem. When i exitted the Jasper Viewer, the Web server also shutted down. I didn't want that. Did I make some mistakes?
Here is my code:
public class JasperReportUtilWithoutDataSource {  public static void viewReport(String jrxmlFile, Map parameters){  try {   JasperPrint jasperPrint = makeJasperPrint(jrxmlFile, parameters);
   JasperViewer.viewReport(jasperPrint);  } catch (JRException e) {   e.printStackTrace();   System.exit(0);  } }  public static void exportToPdf(String jrxmlFile, Map parameters, String pdfOutFile) {
  try{     JasperPrint jasperPrint = makeJasperPrint(jrxmlFile, parameters);     JasperExportManager.exportReportToPdfFile(jasperPrint, pdfOutFile);    } catch (JRException e) {     System.out.println
(e.getMessage());     }catch (Exception e) {     e.printStackTrace();   System.exit(0);    } }  //-

 private static JasperPrint makeJasperPrint(String jrxmlFile, Map parameters) throws JRException {  JasperDesign jasperDesign = JRXmlLoader.load(jrxmlFile);  JasperReport jasperReport = JasperCompileManager.compileReport
(jasperDesign);  JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, new JREmptyDataSource() );  return jasperPrint; }}
Hoping your reply soon.Thank you very much.
Regards,
Quang