The swExport tool can be used to export SystemWeaver Reports in PDF format. Using this tool, you can implement your own application that can utilize the swExport.exe for report export based on your organization's needs.


To obtain the tool, contact your internal SystemWeaver support team, or [email protected].


Prerequisites

  • An existing Report to export
  • An installation of SystemWeaver version R47 or later
  • An installation of swExport.exe version R47 or later

Meta Model

Report export has no required meta model, or item structure, and is suitable for all Report use cases. All it requires is an existing Report to export. 


Example Report

Explanation of Settings

ParameterDefinitionExpected value typeCommentExample
serverNameThe name or IP address of SystemWeaver serverStringRequiredserverName=localhost
serverPortThe port of SystemWeaver serverIntegerRequiredserverPort=1768
serverUsernameThe SystemWeaver username to connect withStringOptional. If not supplied, Windows authentication will be used.serverUsername=user
serverPasswordThe SystemWeaver password to connect withStringOptional. If not supplied, Windows authentication will be used.serverPassword=pass
typeSpecifies export is of a ReportreportRequiredtype=report
configItemThe report configuration to be executedConfig item xID or Ref id*Required

configItem=SI0111:ReqReport

configItem=x34000000000A384D
filename**The name of the PDF output file.StringRequired  filename=requirementsReport.pdf
itemIDThe xID of the itemSystemWeaver xIDRequireditemID=x0000001D04533514
parameterTo specify a parameter name and selected value
Parameter name, and item xID and value
Optional, but required if there are parameters specified in the configurationparameter="(p0;x04000000000F3AD1)" parameter"(p1;false)"


* The difference between the two is explained in Referencing Latest vs Specific Version of Config Item View.

** Note that if you hardcode the name and do several exports, older output will be replaced. To keep the old files, make the name dynamic, e.g., Name + TimeOfExport.


The above settings can also be found in the application help via command line: swExport.exe help


Example Command Lines

Using Username and Password

swExport serverName=sys6 serverPort=1201 serverUsername=admin serverPassword=wagadoff type="report" itemID=x0400000024D04D6E configItem=x3400000006A38D5A filename="C:\Temp\ReqReport.pdf"
Generic

Using Network Authentication

swExport serverName=sys6 serverPort=1201 type="report" itemID=x0400000024D04D6E configItem=x3400000006A38D5A filename="C:\Temp\ReqReport.pdf"
Generic


With Parameter

swExport serverName=sys7 serverPort=1345 type="report" itemID=x04000000001036EF configItem=SSRP:ParameterTest parameter="(p1;x0400000000103700)" filename="C:\Temp\Parameter_report.pdf"


The commands will log in the user account to the server, build and export the report, and then log out. 


Example Result 


Things to consider

  • Exported reports are without bookmarks.