Quantcast
Channel: SCN : Popular Discussions - Java SDK Application Development
Viewing all articles
Browse latest Browse all 1701

RAS SDK issue with setting number of viewable columns

$
0
0

Hello, when we upgraded our 3.x systems to BI 4.1 sp2/DS 4.2 sp1p3, a report that depends upon dynamically sizing the browser output via the Java SDK now no longer displays the correct number of columns. It now only displays what is set in the actual report, rather than having that default setting overridden by the SDK call. The effect is to truncate the number of columns displayed to about 13. Here's a snippet of the code:

 

final int newSize = (reportPrototype.getReportFields().size() * TWIPS_PER_COLUMN) + _columnMargin;

 

IPrintOptions newPrintOptions = (IPrintOptions) reportPrototype.getReportDocument().getPrintOutputController().getPrintOptions().clone(true);

newPrintOptions.setDissociatePageSizeAndPrinterPaperSize(true);

newPrintOptions.setPaperSize(PaperSize.paperA4);

newPrintOptions.setPaperOrientation(PaperOrientation.landscape);

 

reportPrototype.getReportDocument().getPrintOutputController().modifyPrintOptions(newPrintOptions);

reportPrototype.getReportDocument().getPrintOutputController().modifyUserPaperSize(HEIGHT_IN_TWIPS, newSize);

 

Like I mentioned above, this SDK functionality used to work on our previous 3.x systems, but it currently doesn't work on our 4.x systems. If we change the width in the report itself, then it will statically display more columns, but that doesn't take into account the dynamic nature of the report, which can have as few as 1 column and as many as 100. Is this no longer how we need to change the output with of a report that's sent to the browser? For both CSV and XSLX output, the number of columns is correct.

 

-Allen


Viewing all articles
Browse latest Browse all 1701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>