forked from BBFMedia/PHPJasperXML
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsample6.php
More file actions
27 lines (18 loc) · 752 Bytes
/
sample6.php
File metadata and controls
27 lines (18 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$filename=$_GET["filename"];
include_once('class/tcpdf/tcpdf.php');
include_once("class/PHPJasperXML.inc.php");
include_once ('setting.php');
$xml = simplexml_load_file("sample6.jrxml");
$PHPJasperXML = new PHPJasperXML();
$PHPJasperXML->debugsql=false;
$PHPJasperXML->arrayParameter=array();
$PHPJasperXML->xml_dismantle($xml);
$PHPJasperXML->transferDBtoArray($server,$user,$pass,$db);
$PHPJasperXML->outpage("I"); //page output method I:standard output D:Download file, F =save as filename and submit 2nd parameter as destinate file name
//$PHPJasperXML->outpage("I"); //page output method I:standard output D:Download file
?>