Results 1 to 3 of 3

Thread: [RESOLVED] Subreport within a subreport?

  1. #1

    Thread Starter
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Resolved [RESOLVED] Subreport within a subreport?

    Ok, I am running CR9 and I have a problem. I am making an invoice and within this invoice are Instruments and each instrument can have multiple line items.
    I made the report like so

    Main Report -Invoice

    Details a -Calibration Subreport
    Subreport Details a -Instruments
    Subreport Details b -LineItems This is the problem

    Details b -Repairs Subreport
    Subreport Details a -Instruments
    Subreport Details b -Line Items This is the problem

    The problem I am running into is that when an Instrument has Multiple line items, It repeats the Instrument for each line item. The only way that i know how to solve this is to have a subreport containing all the line ites, however, I can't seem to place a subreport within a subreport. Does anyone have any suggestions at all on this one, because I am stumped at this point.

    Thanks for any help.
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Subreport within a subreport?

    Based on your post it looks like you have 6 sub-reports. You probably only need 2.

    Do you use Grouping at all? That would help to eliminate the repitition of records?

    What are the links between Calibration, Instruments and Line Items? As well as Repairs, Instruments and Line Items?

  3. #3

    Thread Starter
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Re: Subreport within a subreport?

    I only use 2 subreports the Instruments and line items are just detail sections of the 2 subreports. I do use grouping. I have actually solved this issue using shared variables and checking records, but thanks for your help.
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width