Dieses Werkzeug wird zur Integration von Reports in PHP-Applikationen verwendet werden.
Parameter |
Beschreibung |
---|---|
/Output:< string> |
Path of the PDF output file (.pdf) (short form /O) |
/ConnectionString:< string> |
DSN-less connection string or DSN (Dsn=MYDB) (short form /C) |
/Param:< string> |
Ordered or named report parameter, use /Param:Value |
@< file> |
Read response file for more options |
< Input> |
Path of the report definition file (.rep) |
Beispiel:
Nsoft.ReportManager.CLI.exe noten.rep /Output:noten.pdf /ConnectionString:dsn=WDB /Param:44
Das Werkzeug ist auch in der Lage die PDF-Datei direkt in den Ausgabe-Stream zu schreiben. Dieser kann z.B. seitens einer Webapplikatione direkt zum Browser geleitet werden. Folgendes Beispiel zeigt die Einbindung in PHP unter Nutzung des Standardausgabe-Streams:
header("Content-disposition: attachment; filename=$filename");
$error = system("$sys_reportCmd $report /Output:stdout /ConnectionString:dsn=HSM /Param:$id");
header("Content-type: application/pdf");
if ($error) echo "error:".$error;
die;
Kommandoscripte
@rem Windows @Nsoft.ReportManager.CLI.exe %1 /ConnectionString:dsn=campus21 %2 %3 %4 ...
#Linux mono Nsoft.ReportManager.CLI.exe "/Input:$1" /ConnectionString:dsn=campus21 "$2" "$3" "$4" "...
Wir arbeiten mit Software von http://www.campus21.de.
Verantwortlich für angezeigte Daten ist der Webdomain-Eigentümer laut Impressum.