I use the next java code to export pdf file , but it isnt working, the size of this pdf file is zero , I cannt open this pdf file , how to modify the code ?

Code: Select all
stiReport.render();
Code: Select all
((StiText) report.GetComponentByName("Text1")).setFont(new StiFont("Arial Unicode MS", 8));