本文整理汇总了Java中ro.nextreports.engine.queryexec.QueryException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java QueryException.printStackTrace方法的具体用法?Java QueryException.printStackTrace怎么用?Java QueryException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ro.nextreports.engine.queryexec.QueryException
的用法示例。
在下文中一共展示了QueryException.printStackTrace方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initHiddenParameterValues
import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
private void initHiddenParameterValues(QueryParameter qp) {
if ((qp.getDefaultValues() != null) && (qp.getDefaultValues().size() > 0)) {
if (qp.getDefaultValues().size() == 1) {
parametersValues.put(qp.getName(),qp.getDefaultValues().get(0));
} else {
parametersValues.put(qp.getName(), qp.getDefaultValues().toArray());
}
} else if ((qp.getDefaultSource() != null) && !qp.getDefaultSource().trim().equals("")) {
try {
ParameterUtil.initDefaultParameterValues(con, qp, parametersValues);
} catch (QueryException e) {
LOG.error(e.getMessage(), e);
e.printStackTrace();
}
}
}
示例2: newPage
import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
@Override
protected void newPage() {
flushNow();
Br objBr = new Br();
objBr.setType(STBrType.PAGE);
P para = createParagraph();
para.getContent().add(objBr);
wordMLPackage.getMainDocumentPart().getContent().add(para);
if (bean.getReportLayout().isHeaderOnEveryPage()) {
try {
printHeaderBand();
newRow = true;
} catch (QueryException e) {
e.printStackTrace();
}
}
}
示例3: buildHeader
import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
private void buildHeader() {
if (bean.getReportLayout().getPageHeaderBand().getColumnCount() == 0) {
return;
}
try {
printPageHeaderBand();
Header header = xlsSheet.getHeader();
header.setCenter(headerS.toString());
} catch (QueryException ex) {
ex.printStackTrace();
} finally {
headerS = new StringBuilder();
}
}
示例4: buildFooter
import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
private void buildFooter() {
if (bean.getReportLayout().getPageFooterBand().getColumnCount() == 0) {
return;
}
try {
printPageFooterBand();
Footer footer = xlsSheet.getFooter();
footer.setCenter(footerS.toString());
} catch (QueryException ex) {
ex.printStackTrace();
} finally {
footerS = new StringBuilder();
}
}
示例5: interpretPageNo
import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
protected PrefixSuffix interpretPageNo(BandElement bandElement) {
String exp = "";
try {
String pattern = "";
if (bandElement instanceof FieldBandElement) {
pattern = ((FieldBandElement)bandElement).getPattern();
}
exp = StringUtil.getValueAsString( evaluateExpression(((ExpressionBandElement) bandElement), "", null), pattern);
String name = "$V_" + Variable.PAGE_NO_VARIABLE;
return StringUtil.parse(exp, name);
} catch (QueryException ex) {
ex.printStackTrace();
}
return null;
}
示例6: newPage
import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
protected void newPage() {
addRegions(xlsSheet, regions, wb);
if (hasTemplate()) {
xlsSheet = wb.getSheetAt(bean.getReportLayout().getTemplateSheet()-1);
} else {
// for a group name inside sheet name when we create a page we do not have the group name yet
// so we will have to set the name of the previous sheet (see also finishExport where we set the name of the last sheet(s)
String sheetName = replaceSheetNameParam(bean.getReportLayout().getSheetNames());
if ((sheetName == null) || sheetName.isEmpty()) {
sheetName = String.valueOf(page);
}
if (sheetNameContainsGroup(bean.getReportLayout().getSheetNames()) && (page>1)) {
// current group is for previous sheet page
xlsSheet = wb.createSheet(String.valueOf(page));
wb.setSheetName(page-2, sheetName);
} else {
xlsSheet = wb.createSheet(sheetName);
}
}
xlsSheet.setMargin(Sheet.LeftMargin, getInches(bean.getReportLayout().getPagePadding().getLeft()));
xlsSheet.setMargin(Sheet.RightMargin, getInches(bean.getReportLayout().getPagePadding().getRight()));
xlsSheet.setMargin(Sheet.TopMargin, getInches(bean.getReportLayout().getPagePadding().getTop()));
xlsSheet.setMargin(Sheet.BottomMargin, getInches(bean.getReportLayout().getPagePadding().getBottom()));
if (bean.getReportLayout().getOrientation() == LANDSCAPE) {
xlsSheet.getPrintSetup().setLandscape(true);
}
setPaperSize();
patriarch = xlsSheet.createDrawingPatriarch();
buildHeader();
buildFooter();
page++;
// first page header is written by ResultExporter
if (bean.getReportLayout().isHeaderOnEveryPage() && (page > 2)) {
try {
printHeaderBand();
} catch (QueryException e) {
e.printStackTrace();
}
}
}
示例7: newPage
import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
protected void newPage() {
addRegions(xlsSheet, regions, wb);
if (hasTemplate()) {
xlsSheet = wb.getSheetAt(bean.getReportLayout().getTemplateSheet()-1);
} else {
// for a group name inside sheet name when we create a page we do not have the group name yet
// so we will have to set the name of the previous sheet (see also finishExport where we set the name of the last sheet(s)
String sheetName = replaceSheetNameParam(bean.getReportLayout().getSheetNames());
if ((sheetName == null) || sheetName.isEmpty()) {
sheetName = String.valueOf(page);
}
if (sheetNameContainsGroup(bean.getReportLayout().getSheetNames()) && (page>1)) {
// current group is for previous sheet page
xlsSheet = wb.createSheet(String.valueOf(page));
wb.setSheetName(page-2, sheetName);
} else {
xlsSheet = wb.createSheet(sheetName);
}
}
xlsSheet.setMargin(InternalSheet.LeftMargin, getInches(bean.getReportLayout().getPagePadding().getLeft()));
xlsSheet.setMargin(InternalSheet.RightMargin, getInches(bean.getReportLayout().getPagePadding().getRight()));
xlsSheet.setMargin(InternalSheet.TopMargin, getInches(bean.getReportLayout().getPagePadding().getTop()));
xlsSheet.setMargin(InternalSheet.BottomMargin, getInches(bean.getReportLayout().getPagePadding().getBottom()));
if (bean.getReportLayout().getOrientation() == LANDSCAPE) {
xlsSheet.getPrintSetup().setLandscape(true);
}
setPaperSize();
patriarch = xlsSheet.createDrawingPatriarch();
buildHeader();
buildFooter();
page++;
// first page header is written by ResultExporter
if (bean.getReportLayout().isHeaderOnEveryPage() && (page > 2)) {
try {
printHeaderBand();
} catch (QueryException e) {
e.printStackTrace();
}
}
}