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

gam

Members
  • Posts

    7
  • Joined

  • Last visited

gam's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I'm having a problem which some people already had too, it is when a long justified text needs a split in new pages...then the last line of the text in the first splitted page is not justified, even if its not the end of the text. I found this tracker http://jasperforge.org/projects/jasperreports/tracker/view.php?id=2874 but I'm having problems with that patch, I don't know how to use it at all... can anyone give me a little help? anyone got a .jar already patched? thanks
  2. Waiting answer for the same question as dvm...
  3. Hello again Kakkar, sorry for the delay on this response, I was traveling : ) Sorry i don't think i understood right what you are asking... Your application, is local? you want the report to be like a ".doc" file or something like that? because with the jasper, you can use the JRExporter in your application, and within the jasper you will have a query to a database, in this query you will do something like what i said before, and then your report will only contain what that user can see. so it won't be just one document for all the users, instead, one document per user level, but using the same .jasper file.
  4. Hi again, So, if i understood it right, with this actuate you generate the report (only once) and keep it saved in a dir, then when the user wants to see the report your application will get it at this dir where it is kept?? In jasper you can generate the report in runtime, so you won't just generate a report only once, you will have a .jasper file in a dir inside your application's folders, then when the user wants to see it, you can use JRExporters (like RTF, PDF, ODT, ODS, etc. exporters) and it will generate in run time. So yes, you can use what I said before (or something like it) to do the security thing. I hope i helped. GAM
  5. hello kakkar, I don't know if there is a way to do it simply just by the iReport desgin, but you can do it in several other ways...You can add a "security_level" field in you BD tables where the content you want to access are, like "levels 0, 1, 2, 3, 4 ..." and when a user with level 1 tries to generate the report, in the query you use "where security_level <= $P{level}" or something like that....Do you get me? for example: TABLE CONTENT (content, security_level) TABLE USER (user_name, user_level) and you have the levels 1, 2 and 3 (3 is the adm who can see all levels, the level 2 can see 2 and 1, and level 1 can see only 1) in the report query: SELECT content from CONTENT where security_level <= user_level I hope i helped.
  6. Hi, I'm having problems with exporting a report to ".ods", wich are: - I have an image in the report, that comes with a path + image name as parameter and in the report is a java.io.File, the image expression in the report is: new java.io.File($P{path}+$P{imageName}) it works great when exporting to .xls, .odt and .rtf, but it doesn't work when exporting to .ods, any ideas?? - The other problem that I have is because i need to do something like the "one page per sheet" option when reporting to .xls, but I need to do this when reporting to .ods, how can I do that? thanks
×
×
  • Create New...