116 lines
4.0 KiB
Plaintext
116 lines
4.0 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" %>
|
|
<%@ Import Namespace="CLIPreport.OOF"%>
|
|
|
|
|
|
<%
|
|
|
|
|
|
|
|
|
|
|
|
ReportUtil reportUtil = ReportUtil.getInstance();
|
|
Response.AddHeader("Cache-Control", "no-cache, no-store");
|
|
|
|
|
|
OOFDocument oof = OOFDocument.newOOF();
|
|
|
|
// Set report title
|
|
oof.setTitle("TestReport");
|
|
|
|
OOFFile file = oof.addFile("crf", "dbSample.crf");
|
|
|
|
// DB Connection
|
|
oof.addConnectionData("*","lmsynicte");
|
|
|
|
// Add Field
|
|
oof.addField("paramName","paramValue");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//##############################################################################################################################
|
|
|
|
//##############################################################################################################################
|
|
// [Example] Inserting data in XML format from HTTP.
|
|
//file.addConnectionHTTP("*", "http://rexpert.clipsoft.kr/rebfiles/demo/resign.xml", null).addContentParamXML();
|
|
//################################################################# #############################################################
|
|
|
|
|
|
|
|
//##############################################################################################################################
|
|
// [Example] Inserting JSON data.
|
|
//file.addConnectionMemo("*", "{\"value\":200}" ).addContentParamJSON();
|
|
//##############################################################################################################################
|
|
|
|
|
|
// Create a Report key.
|
|
// This key is used in the Javascript-based report viewer.
|
|
|
|
String reportKey = reportUtil.createReportToKey( oof);
|
|
|
|
|
|
//##############################################################################################################################
|
|
// [Example] You can use the comment code below.
|
|
//String reportKey = reportUtil.createReportToKey(response, oof, request.getCharacterEncoding());
|
|
//String reportKey = reportUtil.createReportToKey(response, oof.toBase64());
|
|
//String reportKey = reportUtil.createReportToKey(response, oof);
|
|
//##############################################################################################################################
|
|
|
|
%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<title>Report</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<link rel="stylesheet" type="text/css" href="./css/font.css">
|
|
<link rel="stylesheet" type="text/css" href="./css/eform.css">
|
|
<link rel="stylesheet" type="text/css" href="./css/clipreport.css">
|
|
<link rel="stylesheet" type="text/css" href="./css/UserConfig.css">
|
|
|
|
|
|
<script type='text/javascript' src='./js/jquery-1.11.1.js' charset='utf-8'></script>
|
|
<script type='text/javascript' src='./js/clipreport.js?ver=1.0' charset='utf-8'></script>
|
|
<script type='text/javascript' src='./js/UserConfig.js' charset='utf-8'></script>
|
|
<script type='text/javascript' src='./js/clipreport-support.js' charset='utf-8'></script>
|
|
|
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
var clipAPIPath = location.protocol + '//' + location.host + location.pathname + "/../Clip.aspx";
|
|
var testReport = null;
|
|
function html2xml(divPath) {
|
|
var reportkey = "<%=reportKey%>";
|
|
var reportSupport = createReportSupport(clipAPIPath);
|
|
var report = reportSupport.createImportJSPReport(clipAPIPath, reportkey, document.getElementById(divPath));
|
|
testReport = report;
|
|
|
|
reportSupport.setVisibleExportProgress(true);
|
|
report.setStyle("hwp_button","display:none;");
|
|
report.setStyle("doc_button","display:none;");
|
|
report.setStyle("excel_button","display:none;");
|
|
report.setStyle("save_button","display:none;");
|
|
report.setStyle("print_button","display:none;");
|
|
report.view();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body onload="html2xml('targetDiv1')">
|
|
<div id='targetDiv1' style='position:absolute;top:0px;left:5px;right:5px;bottom:5px;'></div>
|
|
|
|
</body>
|
|
</html>
|
|
|
|
s |