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

aj_angel60

Members
  • Posts

    2
  • Joined

  • Last visited

aj_angel60's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Hello Everyone, My small Swing Project is ready to deploy. Now I realised that i had used absolute path for Jasper Report which will create problem on client side I guess. So I want to use relative path for that i searched but didnot get any appropriate answer. Here is code DefaultTableModel jtm2 = (DefaultTableModel) jTable2.getModel(); JRDataSource dataSource = new JRTableModelDataSource(jtm2); JasperPrint jprint = JasperFillManager.fillReport("E:\Swing Project\SCMPayBoard\src\scmpayboard\EmpReport.jasper", null, dataSource); JasperViewer.viewReport(jprint, false); How do i change the path E: drive into relative so where ever user install, it wont create problem. I searched the syntax (.) (..) single dot and double dot and tried various variation but no result. Please guide me
  2. I installed Ireport plugin to make reports. Tools - Netbeans , ucanaccess Driver , MS accessDB While making db connection for Ireport i added 5 jar files of ucanaccess in ireport classpath. JDBC Driver -net.ucanaccess.jdbc.UcanaccessDriver JDBC URL- jdbc:ucanaccessE:ProjectPayBoardDatabaseDbTest1.accdb Problem: As my access Db doesn't have password so i left username n pass space blank. On Testing the connection following error appears. General problem: null Please check your username and password. The DBMS is running?! Please suggest how do i rectify.
×
×
  • Create New...