Get the height of a report to use for setting height of subreport

I am getting an error:  Invalid Section Height   on one of my subreports
that I am programmatically inserting into a report.  I have not set the
subreport height, I thought that it would be automatically set if I didn't
set it.   I am measuring the width of a section in the report I am using
for a subreport to use as the Width for the subreport, but not sure how
to get the height of the report.   It appears this needs to be in pixels.
I have manually tried setting it to 14400, which I believe is 11" and I ge an invalid section height error.
How do I get the height for the subreport???  
I am using VB.Net 2008, Crystal 2008, Vista Buisiness.   - All the latest service packs of everything.
Thanks,
Jeff

Hi Jeff,
The easiest way to figure this out is to test it in the Crystal Reprot Designer first. Bascially you can't set the subreport higth larger than the report page itself. CR needs to allocate space for the Page header and footer then Group header/footer and detail sections. There are options when designing this in CR Designer which will allow you to span more than one page. The simplest way is to design a template report in Crystal Report Designer so you can see all the options required to make this work. Then you can set the same in code when inserting.
Remember "If it can't be done in the Report Designer it can't be done in code" The Designer uses the same set of API's as .NET. By using a test report you can then see what settings are being configured when you get the info in code.
It believe you simply need to set the Can Grow options. Test this in the Designer then update us if you have any more questions.
Thank you

Similar Messages

  • How can I get the adobe audition software which is used for editing a sound track?

    How can I get the adobe audition software which is used for editing a sound track?

    Hi pravupada,
    You can download Audition software from : Free Audition CC | Download Adobe Audition free trial
    Regards,
    Rave

  • How to get the value from another report Customizes Form

    Dear all,
    I create a report such as
    select * from mytable.table1
    where field1 = :bind_variable
    I create a menu to run this Customized Form and user have to select the bind_variable values. So I have another report created which also want this bind_variable as it WHERE Clause. But I don't want my user to key the same bind variable twice. They can just same the Customized Form and run for both report.
    Could anybody know how to get the bind_variable on 1st report and used by the 2nd report.
    Thank you very much.
    Best Rgds,
    SL Voon

    Hi,
    are you on BI7.0? There you can create variables type replacement path and get the value out from a different variable without any coding.
    regards
    Cornelia

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

  • How to get the values from struct data type using java code..?

    Hi ,
    I am newer to java.
    we are using oracle database.
    How to get the data from struct data type using java code.
    Thanks in Advance.
    Regards,
    kumar

    Hi Rajeev,
    To retrieve a FilterContainer you will need to traverse the report structure:
    ReportStructure boReportStructure = boDocumentInstance.getStructure();
    ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
    FilterContainer boFilterContainer = null;
    if (boReportContainer.hasFilter()) {
         boFilterContainer = boReportContainer.getFilter();
    } else {
         boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
    Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
    Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
    Hope this helps.
    Regards,
    Dan

  • How can I get the height of an UIComponent programmatically?

    How can I get the height of an UIComponent programmatically? In my case the component is a Panel Box which has bindings to a backing bean. But it seems the RichPanelBox does not have have method like getHeight()

    Use setInlineStyle(java.lang.String inlineStyle) method.
    RichPanelBox panelBox;
    panelBox.setInlineStyle("height:400px");
    Thanks,
    Navaneeth

  • Ever since installing Firefox 4 beta, even on regular Firefox, I get the pop-up "Crash Reporter"

    ever since installing Firefox 4 beta, even on regular Firefox, I get the pop-up "Crash Reporter": Add-ons: [email protected]:4.51,{CAFEEFAC-0016-0000-0016-ABCDEFFEDCBA}:6.0.16,{20a82645-c095-46ed-80e3-08825760534b}:1.2.1,{CAFEEFAC-0016-0000-0020-ABCDEFFEDCBA}:6.0.20,{3f963a5b-e555-4543-90e2-c3908898db71}:9.0.0.872,[email protected]:1.1,[email protected]:1.0.4,{972ce4c6-7e08-4474-a285-3208198ce6fd}:3.6.13.

    Are you using a nightly build or a beta?<br />
    Did you create a new profile folder for that beta?<br />
    You can see the crash reports in the "Crash Reports" folder in the parent Firefox folder of your profile folder.
    Help > Troubleshooting Information > Profile Directory > Open Containing folder
    See [[Profiles#How_to_find_your_profile|Profiles - How to find your profile]]
    Linux: ~/.mozilla/firefox/Crash Reports

  • Problem getting the height of a UIScrollView

    hi,
    i am setting the size of a UIScrollView in viewDidLoad: but when I try to get the height of it, i am getting 0 in the console
    here is my code:
    - (void)viewDidLoad {
    [scrollView setContentSize:CGSizeMake(320,500)];
    NSLog(@"scrollView: %@", scrollView);
    NSLog(@"scrollView.contentSize.height: %i", scrollView.contentSize.height);
    [super viewDidLoad];
    and in the console log i get
    scrollView: <UIScrollView: 0x4974110; frame = (0 0; 320 367); clipsToBounds = YES; autoresize = RM+TM; layer = <CALayer: 0x4974010>>
    scrollView.contentSize.height: 0
    Shouldn't scrollView.contentSize.height be returning 367? On a related note, i specified the height to be 500 via [scrollView setContentSize:CGSizeMake(320,500)] , but that doesn't appear to be applied either?

    The width and height of CGSize are CGFloat type (double), so use a float format specifier in NSLog. E.g.:
    NSLog(@"scrollView.contentSize.height: %2.0f", scrollView.contentSize.height);
    - Ray

  • Getting the height of a font

    Hi there,
    I have a problem in determining the exact height of a font.
    I am using a JPanel to display some text in a GUI. The panel should have space for five lines of text. How can I determine the size of the font before the Frame that is containing my GUI is shown, so that I can set the size of the JPanel to the appropriate size?
    I've tried
    FontMetrics metrics = getFontMetrics(getFont());
    int lineHeight = metrics.getAscent() + metrics.getDescent();
    But this produces a NullPointerException on runtime.
    Does anyone know another way to get the height of a font before the frame is shown?
    Thank you,
    FReAK

    Ok,
    I figured out that the problem is that getFont() gets null as font.
    So if I use setFont() everything is fine.
    But I don't have to set a specific Font when drawing a String, so is there must be a standard Font.
    Does anyone know how to get the metrics of this font?

  • How to get the height of JPanel?

    Hi.
    I am new to GUI programming.
    I am trying to get the height of a JPanel which I put inside a JFrame but the getHeight() method returns me zero.
    My code are as follows:
    public class Form2
    public static void main(String[] args)
    JFrame f = new JFrame();
    JPanel p = new JPanel();
    f.setTitle("Testing...");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setSize(400, 300);
    f.setVisible(true);
    f.add(p);
    System.out.println(f.getHeight());
    System.out.println(p.getHeight());
    Can somebody enlighten me on how to obtain the height of the JPanel?
    Thanks in advance.

    Swing related questions should be posted in the Swing forum.
    I am trying to get the height of a JPanelComponents don't have a size until the JFrame is made visible and all the components are layed out by the LayoutManager. You can use a WindowListener to tell when a frame is shown.

  • HT201269 I am trying to save memory on my iPhone 4S/ ios6. Can I back up all photos to icloud and the external hard disk I normally use for photos? If I then delete photos from the iPhone do the get deleted on iCloud?

    I am trying to save memory on my iPhone 4S/ ios6.
    1) Can I back up all photos to icloud and the external hard disk I normally use for photos? If I then delete photos from the iPhone do the get deleted on iCloud?
    2) Can I back up the newsstand to iCloud and save memory on the iPhone?
    3) Can I back up the bookshelf to icloud and save memory on the iPhone?

    1. What format is the external drive? It sounds like it's ina format that Macs can't write to. Is it a NAS or NTFS?
    2. Easiest thing: just move your iPhoto Library to the external
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • I am trying to update itunes but keep getting 'The feature you are trying to use is on a network resource that is unavailable - Click OK to try again, or enter an alternate path folder containing the installation package 'itunes64msi' in the box below'. ,

    I am trying to update itunes but keep getting 'The feature you are trying to use is on a network resource that is unavailable - Click OK to try again, or enter an alternate path folder containing the installation package 'itunes64msi' in the box below'.
    I am unable to install and also i cannot uninstall itunes, can anyone HELP PLEASSSSSSEEEEEE!!

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Getting the output from a Perl script using Runtime.exec

    I cannot get the output from a perl script using Java. Can someone PLEASE help?
    I used the following code:
    Process p = Runtime.getRuntime().exec("C:\\Perl\\bin\\Perl.exe script.pl) ;
    InputSream in = p.getInputStream();
    b...
    do
    System.out.println(b);
    while ((b = in.read()) > 0)
    But there is no way that I get the output in the inputstream. If I use the command "cmd script.pl", the output is displayed in the Dos box, but also not in the inputstream.
    I will appreciate any help.

    Try this
    Process p = Runtime.getRuntime().exec("C:\\Perl\\bin\\Perl.exe script.pl) ;
    BufferedReader rd = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String str;
    while((str=rd.readLine())!=null){
    System.out.println(str);
    Manu

  • I have an old iPod Classic with 80 GB (I think) of space. I saved all my songs in an external hard drive, but the iTunes library resided in an old computer (no longer working). Can I get the libray from my iPod and use it in my new computer (Windows)?

    I have an old iPod Classic with 80 GB (I think) of space. I saved all my songs in an external hard drive, but the iTunes library resided in an old computer (no longer working). Can I get the library from my iPod and use it in my new computer (Windows)?

    You might want to check your process for moving your iTunes music against this: http://support.apple.com/kb/HT4527.

  • The App Store says I have updates for I-Photo and Garage Band.  When I try to update I get the following message: You have updates available for other accounts  To update this application, sign in to the account you used to purchase it.  I only have 1 acc

    The App Store says I have updates for I-Photo and Garage Band.  When I try to update I get the following message: You have updates available for other accounts  To update this application, sign in to the account you used to purchase it."  Both apps came with my computer and as far as I know I only have one Apple account.  Any thoughts?  Thanks.
    Karen

    Thanks for you reply.  I'm 99% positive that I'm using the user id and password that I used to set up my computer.  That's why I'm stumped.  I read the solution someone else suggested (type your user name without @gmail and create a new password.  When I tried it, I was asked for my birthday.  It didn't recognize it.  I know I got my birthday correct. Oh well...
    Karen

Maybe you are looking for

  • Safari keeps crashing, multiple times a day, multiple times an hour....

    Safai crashes all of the time.  Sometimes on certain sites, with every link I click, Safair seems to shut down. This is absolutely ridiculous, and I would love a solution.  I've tried several I've found on this site to no avail.  2011 Mac Mini, Mount

  • Workflow for Bank Communication Management

    Hi , I need to find out any SAP workflows are responsible for the below activities in Bank communication management . spro-Financial Supply Chain Management- > Bank Communication Management -> Release Strategy -> Change and Release -> Assign Role to

  • Applying a debit memo

    Hi Gurus i know that to reverse a credit memo,you need to apply the debit memo to the creidt memo. can someone please assist on the process of applying the credit memo to the invoice and subcequently applying the debit memo to the invoice. thank you

  • Recommended number of fds on a SJES5 install

    Hello, We're in the process of moving our smtp infrastructure on SJES5 on brand new T2000 (32 cores @ 1.2GHz with 16GB RAM, running SunOS 5.10). Nowhere in the deployement guidelines or anywhere else I've seen a recommendation regarding ulimit -n and

  • How to delete a Database view?

    HI Everyone, Created a Database in ECC to get the bank details from two tables BNKA and BKPF, but now I wanted to delete this View. Can someone tell me how to delete the Database view? Thanks Vandana