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

ml.francis

Members
  • Posts

    16
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by ml.francis

  1. Hi, so I found that this code: ((JPanel)viewreport.getComponent(0)).remove(0);[/code]removes the save button but what is the component number and index of remove if you want to remove the Print button from JRViewer? Anybody know? Thanks.
  2. I solved it by getting the new Jasper Report .jar file and the latest version of commons collections .jar file. I get to run the report in intelliJ but when I run it from the executable .jar file the whole JPanel doesn't load at all. I tried to narrow down the problem it seems that if I compile a jasper report the jpanel in my java app just won't load. I still don't know what's wrong, I'm guessing it's another compatibility issues with the .jar libraries but I updated all the commons .jar and no luck, the jpanel still doesn't load in the executable .jar file. but if I comment out the compile line in my code the jpanel loads. Strange.. I wonder if anyone knows the answer to this.. this is my code: JRDataSource jrDatasource = new JRBeanCollectionDataSource(dataSource);JasperReport report = null;try { //InputStream url1 = getClass().getResourceAsStream("./giovanni_requisitionslip.jrxml"); //JasperDesign dis = JRXmlLoader.load(url1); report = JasperCompileManager.compileReport(getClass().getResourceAsStream("giovanni_requisitionslip.jrxml")); //report = JasperCompileManager.compileReport(dis); JasperPrint filledReport = JasperFillManager.fillReport(report, parameters, jrDatasource); pnl_center.add(new JRViewer(filledReport), BorderLayout.CENTER); pnl_center.repaint(); pnl_center.revalidate();} catch (JRException jrException) { jrException.printStackTrace();}
  3. Hi, I want to create a text field where multiple lines can be possible depending on the text passed to it from the database, sometimes the text can be long so more than 1 line is required. I did some digging in google and it seems that I should check some property called "stretch with overlow" in the field properties, but I clicked my field and checked properties and that "stretch with overflow" property/checkbox is nowhere to be found in Jasper Studio. All I can find is Detail Overflows, Stretch Type, and Text Adjust. None of those solved my problem. I tried using Text Adjust and selected the Stretch Height property, it seemed to be the closest to what I want but an error comes up when I generate my report in my Java app: Parse Error at line 233 column 42: cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'. am I doing something wrong? I need a dynamic text field to display my data and adjust it's height depending on the length of the text passed to it. How can I do this in Jasper Studio? Thanks.
  4. Hi, I think this question was asked before but it didn't have an answer, I'm fairly new to Jasper Reports so I'm having trouble displaying it in my Java program after creating a .jar file for my Java program. I use IntelliJ and made a .jar file for my Java app and it uses reports which is located in the /src folder of the project, the app looks for the .jrxml file in that folder and displays it in my swing app. It works fine when I'm running the app on the IDE but when I created a .jar file and moved the .jar file to another folder and run the program, the part where the reports are loaded is not showing anything. Should I be configuring something in IntelliJ to add the .jrxml file in the .jar file? Am I missing something while building this app? I also moved the .jrxml files to the .jar folder and still nothing. Thanks for the answers, if any, in advance.
  5. Hi, I was just hoping to ask if how to set the libraries (.jar files) of Jasper Reports into my Java swing app. I use the command prompt instead of an IDE so I would manually set the classpath on each enter of the java command. ex: java -classpath ".;mysql-connector-java-8.0.15.jar" start (this is my java file). so how do I set the libraries for Jasper Report, I've heard there's several, that means I'll have to input it in the quotation marks and then seperate them with a semicolon? sorry I've never had to put in more than one library so I do not know. And do I also set the class path when I run the javac command for compiling also? What .jar files would I need to open a pdf file of a Jasper Report using Java swing? Thanks in advance for the help.
  6. Hi guys, can anybody point me in the right direction on how to connect a java swing app to a jasper report. This Jasper report is touting itself as a java enabled reporting tool yet there's not one single resource or tutorial about connecting to a goddamn java swing app to a report why is it so mysterious and hard to learn this tool? I am really frustrated after searching for days on end in the internet about a single tutorial about utilizing jasper reports in a java swing app and came out with nothing. Can somebody please give me some code or solid context on connecting a java swing app with a jasper report so I can generate my report from a mysql database? Any help will do and please be specific with the answers and please don't give mysterious or general answers that don't answer a single thing. And which should I use ireport or studio? Should I make a .jrxml file first and then connect it with the java swing app? Somebody help please. Why is this so goddamn hard?
  7. Sir, can you kindly be more specific as to which file I should be downloading and where I can download it and which java file contains source codes in linking a swing app with jasper reports...? I've searched your entire webpage and failed to find a b4.zip file.
  8. which should I download? go to Downloads > commander4j source download options? thanks. which java file should I be looking at..
  9. Hi, I'm just new to jasper reports and I was hoping to ask if anybody could help with some sample codes as to connect my java swing app to jasper report. Do I create the report first in jasper studio or ireport? And then use that file to connect in java to my mysql database for data? I have a database named "uytit" in mysql and with a table called "transaction", I would like to just display all records of transaction to the report for printing as a pdf file. How do I do that? I am using notepad++ and command prompt as my IDE so I cannot import libraries like eclipse or netbeans so how do I import the libraries in the command prompt? Is there a tutorial on the web as well where I can learn how to connect a java swing app to a jasper report using mysql database? I can't find any on the internet... somebody please help. Thank you.
  10. Hi, good day, I've just finished my report design and all the elements are arranged now as to the required design... I need to use it now for my java application, may I ask if what direction or tutorials I should read in order to implement this in my java desktop application? Thank you. I've read some on google but most of it are tutorials based on iReport... I need to copy some jar files as well in my class path... I'm going to be entering data into a JTable and then generating a jasper report based on the table information and then making a PDF... which direction or tutorial should I go from here? Thanks again.
  11. I've been advised after posting a similar question to just use jasper studio instead, I'm using studio now and it works fine.
  12. Hi, good day, I'm trying to create a simple product catalog, this is my first time to create a subreport and I followed the tutorial and customized it for the products... basically I just have a main report with a subreport to display the description of the product. the main report has a field called ID_product that draws from the table the ID of the given product and the subreport should use that to query for a field it has called 'description'. The report should show a list of products starting with the ID and then display a description of that product in the subreport. I didn't want to just display it without subreports because i wanted to further design the report to look like a card like format for each product with a picture of the product and other technical details, so the screen should display a full description of one product and then move on to the next product and so on... my main report has an ID_product field from tbl_product in the details band... then I created a subreport, deleted the unused bands and then used this syntax as the query: select descriptionfrom tbl_productwhere tbl_product.ID_product = $P{ID_product} the subreport has a static label (Description: ) on the column header band then I put in the details band the field description (it displays $F{description}).then afterwards I inserted this subreport in the main report under the ID_product field inside the details band. following the instructions of the tutorial of subreports, I tried adding a parameter, double-clicked the ID_employee. I previewed the main report then it generated an error that it couldn't find the (subreport).jasper file, so I checked the properties tab of the subreport and noticed that the Expression field doesn't display the same value as the one I chose in the parameters so I modified it and it now displays $F after double-clicking the ID_product field in the expression editor (it displays $F{ID_product} in the expression editor though...). now, I tried to preview it it shows a different error, about a run time exception error where an Unknown subreport source class java.lang.Integer... did I do something wrong? Thank you and any help would be great.
  13. hi, good day, I just installed jasper reports ireport designer file... I tried opening it but it won't get past the logo/splash screen... I'm using the latest java jdk (1.8 I think..) and I'm trying to create a simple report for my payroll system... does anybody know why and how to fix it...? Thank you. (I tried changing the config file to point to the java drive path but still nothing...) or maybe I shouldn't be installing the designer, am I supposed to use the studio file?
×
×
  • Create New...