File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,39 @@ $jasper->process(
213213
214214For a complete list of locales see [ Supported Locales] ( http://www.oracle.com/technetwork/java/javase/java8locales-2095355.html )
215215
216+ ###Using MSSQL DataBase
217+
218+ ``` php
219+
220+ $input = '/your_input_path/your_report.jasper or .jrxml';
221+ $output = '/your_output_path';
222+ $format = 'pdf';
223+ $locale = 'en';
224+
225+ $jdbc_dir = __DIR__ . '/vendor/geekcom/phpjasper/src/JasperStarter/jdbc/';
226+
227+ $jasper = new JasperPHP;
228+
229+ $jasper->process(
230+ $input,
231+ $output,
232+ $format,
233+ [],
234+ [
235+ 'driver' => 'generic',
236+ 'host' => '127.0.0.1',
237+ 'port' => '1433',
238+ 'database' => 'DataBaseName',
239+ 'username' => 'UserName',
240+ 'password' => 'password',
241+ 'jdbc_driver' => 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
242+ 'jdbc_url' => 'jdbc:sqlserver://127.0.0.1:1433;databaseName=Teste',
243+ 'jdbc_dir' => $jdbc_dir
244+ ],
245+ $locale
246+ )->execute();
247+ ```
248+
216249###Using JasperPHP with Laravel 5.*
217250
218251* Install [ Composer] ( http://getcomposer.org ) if you don't have it.
You can’t perform that action at this time.
0 commit comments