Hi , i want pass input field value to index.php of report viewer , so how i can send , like this
And how i set Margin of page like in images from form .
how to send input value to index.php in php
Re: how to send input value to index.php in php
Hello.
Such settings could be set for a page of a report.
You could create a report instance and set the page margins as you need.
Thank you.
Such settings could be set for a page of a report.
You could create a report instance and set the page margins as you need.
Code: Select all
report.pages.getByIndex(0).margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
Re: how to send input value to index.php in php
Thank , I Set it like this in Index.php
And its Work but problem is that i have to set this in index.php And Parameter in Hander.php And i am getting both Value , parameter and margin from same form ,
So is it possible that i get all value in hander.php and fetch in index.php
Code: Select all
<?php
$report = "Report.mrt";
$topmargin = "10";
$options = StiHelper::createOptions();
$options->handler = "handler.php";
$options->timeout = 30;
StiHelper::initialize($options);
?>
<script type="text/javascript">
function Start() {
Stimulsoft.Base.StiLicense.loadFromFile("license.key");
var rname = "<?php echo $report ; ?>";
var tmargin = "<?php echo $topmargin ; ?>";
var report = new Stimulsoft.Report.StiReport();
report.loadFile('reports/'+rname);
report.pages.getByIndex(0).margins = new Stimulsoft.Report.Components.StiMargins(1,1,+tmargin,0);
var options = new Stimulsoft.Viewer.StiViewerOptions();
var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
viewer.onBeginProcessData = function (args, callback) {
<?php StiHelper::createHandler(); ?>
}
viewer.report = report;
viewer.renderHtml("viewerContent");
}
</script>
So is it possible that i get all value in hander.php and fetch in index.php
-
- Posts: 6259
- Joined: Tue Mar 20, 2018 5:34 am
Re: how to send input value to index.php in php
Hello,
Unfortunately, no, this is not implemented, because the report is rendered on the client side using JavaScript, in this case in the index.php file, and handler.php processes only some events, such as receiving data, loading and saving the report file.
Thank you.
Unfortunately, no, this is not implemented, because the report is rendered on the client side using JavaScript, in this case in the index.php file, and handler.php processes only some events, such as receiving data, loading and saving the report file.
Thank you.