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

cg8

Members
  • Posts

    5
  • Joined

  • Last visited

cg8'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 tried the method that Carl suggested and it worked perfectly. Thanks!
  2. I tried the previous suggestion as a separate string (with java.util.Date) and it worked, but like you said it is a bit difficult to work it into surrounding text. I will try your method Carl. Thanks for the responses so far!
  3. Date pattern is set to "MM/dd/yyyy" in the text field properties. Dates are appearing like the following-- "7/3/112" instead of "7/3/2012". Let me know if any more information needed. Thanks in advance for your help! Text Field Properties Expression Class: java.lang.String Pattern: MM/dd/yyyy Text Field Expression Below . . . Code:"Agreement will commence on <b>"+ $F{EXPECTEDSTARTDATE}.getMonth()+ "/" + $F{EXPECTEDSTARTDATE}.getDay()+ "/" + $F{EXPECTEDSTARTDATE}.getYear()+ "</b> and end on <b>"+ $F{PURCHASEAGREEMENTEXPIRATION}.getMonth()+ "/" + $F{PURCHASEAGREEMENTEXPIRATION}.getDay()+ "/" + $F{PURCHASEAGREEMENTEXPIRATION}.getYear()+ "</b>."
  4. I am a non-technical designer editing a report, very new to JasperSoft iReports. I am running into the following problems when trying to view a PDF preview (locating subreports/image, error filling print, etc). I have tried with datasource and with empty datasource. Any help would be greatly appreciated!! See below: iReport Output: (With datasource) Compiling to file... C:\Users\cguzman\AppData\Local\Temp\jstmp\file_1340382527739.jasper Compiling subreports.... Unable to locate the subreport with expression: "$P{isLocal} == true ? $P{SUBREPORT_DIR} + "business_commitment_mix_subreport.jasper" : "repo:/IT/Application_Reports/Sales_Cycle/pa_business_commitment_mix_subreport"". Unable to locate the subreport with expression: "$P{isLocal} == true ? $P{SUBREPORT_DIR} + "pricing_and_billing_subreport.jasper" : "repo:/IT/Application_Reports/Sales_Cycle/pa_pricing_and_billing_subreport"". Unable to locate the subreport with expression: "$P{isLocal} == true ? $P{COMMON_SUBREPORT_DIR} + "rebate_schedule_subreport.jasper" : "repo:/IT/Application_Reports/CommonSubReports/RebateScheduleSubReport"". Unable to locate the subreport with expression: "$P{isLocal} == true ? $P{SUBREPORT_DIR} + "programs_and_services_subreport.jasper" : "repo:/IT/Application_Reports/Sales_Cycle/pa_programs_and_services_subreport"". Compilation running time: 1,069! Filling report... Locale: English (United States) Time zone: Default Error filling print... Byte data not found at location : repo:HDSLogo_Transparent net.sf.jasperreports.engine.JRException: Byte data not found at location : repo:HDSLogo_Transparent at net.sf.jasperreports.engine.util.JRLoader.loadBytesFromLocation(JRLoader.java:470) at net.sf.jasperreports.engine.JRImageRenderer.getInstance(JRImageRenderer.java:176) at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:944) at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:891) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:256) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:482) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillTitle(JRVerticalFiller.java:308) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:244) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:110) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:923) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:826) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:59) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:858) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Print not filled. Try to use an EmptyDataSource... iReport Output: (With Empty datasource) Compiling to file... C:\Users\cguzman\AppData\Local\Temp\jstmp\file_1340382527739.jasper net.sf.jasperreports.engine.design.JRValidationException: Report design not valid : 1. Class not set for subreport connection expression. at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:131) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:510) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Compilation running time: 1,529 Code:iReport Output: (With datasource)Compiling to file... C:\Users\cguzman\AppData\Local\Temp\jstmp\file_1340382527739.jasper Compiling subreports.... Unable to locate the subreport with expression: "$P{isLocal} == true ? $P{SUBREPORT_DIR} + "business_commitment_mix_subreport.jasper" : "repo:/IT/Application_Reports/Sales_Cycle/pa_business_commitment_mix_subreport"". Unable to locate the subreport with expression: "$P{isLocal} == true ? $P{SUBREPORT_DIR} + "pricing_and_billing_subreport.jasper" : "repo:/IT/Application_Reports/Sales_Cycle/pa_pricing_and_billing_subreport"". Unable to locate the subreport with expression: "$P{isLocal} == true ? $P{COMMON_SUBREPORT_DIR} + "rebate_schedule_subreport.jasper" : "repo:/IT/Application_Reports/CommonSubReports/RebateScheduleSubReport"". Unable to locate the subreport with expression: "$P{isLocal} == true ? $P{SUBREPORT_DIR} + "programs_and_services_subreport.jasper" : "repo:/IT/Application_Reports/Sales_Cycle/pa_programs_and_services_subreport"".Compilation running time: 1,069!Filling report...Locale: English (United States) Time zone: DefaultError filling print... Byte data not found at location : repo:HDSLogo_Transparentnet.sf.jasperreports.engine.JRException: Byte data not found at location : repo:HDSLogo_Transparent at net.sf.jasperreports.engine.util.JRLoader.loadBytesFromLocation(JRLoader.java:470) at net.sf.jasperreports.engine.JRImageRenderer.getInstance(JRImageRenderer.java:176) at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:944) at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:891) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:256) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:482) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillTitle(JRVerticalFiller.java:308) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:244) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:110) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:923) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:826) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:59) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:858) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Print not filled. Try to use an EmptyDataSource... iReport Output: (With Empty datasource)Compiling to file... C:\Users\cguzman\AppData\Local\Temp\jstmp\file_1340382527739.jasper net.sf.jasperreports.engine.design.JRValidationException: Report design not valid : 1. Class not set for subreport connection expression. at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:131) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:510) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)Compilation running time: 1,529
×
×
  • Create New...