visual studio 2012 - Crystal Report(with subreports) does not work when I change orientation from portrait to landscape -


i having 1 strange issue.

background: using vs2012 on project converted vs '05 or '08. had several existing reports w/wo subreports, varying orientations , work. using cr engine 13.

issue: created new report scratch contains 3 subreports in own 'report header' sections. since spent days trying resolve final report no luck, started scratch , testing each little change until failure. well, failure came when changed orientation on main report portrait landscape. report not load, , code stops no exceptions.(the code snippet below)

the main report made of following sections:

  • section1(report header a) <-sub report 1 here
  • reportheadersection(report header b) <- sub report 2 here
  • reportheadersection(report header c) <- sub report 3 here
  • section2(page header) <- empty (not suppressed)
  • section3(details) <-empty (not suppressed)
  • section4(report footer) <-empty (not suppressed)

all 3 sub reports landscape orientations, page header/detail sections. not empty when inside main report.

code snippet: snippet below populates 'report header a' first subreport.

dim dsdetails new dataset_subreport1 dim objrpt new test2 'test2 crystal report file dim objdoc crystaldecisions.crystalreports.engine.reportobject dim objrptdoc crystaldecisions.crystalreports.engine.reportdocument dim objsubrpt crystaldecisions.crystalreports.engine.subreportobject  objrpt     each objdoc in .section1.reportobjects        if objdoc.kind = crystaldecisions[shared].reportobjectkind.subreportobject            objsubrpt = ctype(objdoc, crystaldecisions.crystalreports.engine.subreportobject)            objrptdoc = objsubrpt.opensubreport(objsubrpt.subreportname)             objrptdoc.setdatasource(dsdetails)         end if    next end 

when report fails, code stops after with objrpt , not error or continue...it stops there.

i going continue trying settings until works, appreciated.

update: circumvented issue reformatted fit portrait. if ever finds solution, please post. thank you.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -