Perl test script to generate a crystal report
Linux, Apache, MySQL, PHP
2
Posts
2
Posters
0
Views
1
Watching
-
Can anyone show me a short perl test script to print a crystal report? Thanks, Steve
-
Can anyone show me a short perl test script to print a crystal report? Thanks, Steve
You'll need this module from CPAN http://search.cpan.org/~mrdvt/Win32-OLE-CrystalRuntime-Application-0.12/lib/Win32/OLE/CrystalRuntime/Application.pm[[^](http://search.cpan.org/~mrdvt
/Win32-OLE-CrystalRuntime-Application-0.12/lib/Win32/OLE/CrystalRuntime/Application.pm "New Window")] Then it's just this: use Win32::OLE::CrystalRuntime::Application; my $application=Win32::OLE::CrystalRuntime::Application->new; my $report=$application->report(filename=>$filename); $report->setParameters(key1=>$value1, key2=>$value2); $report->export(format=>"pdf", filename=>"export.pdf");