Orep_Rs_Application_Instance_Publish()
Abstract
Sends the information in an application instance to Report Server for publishing.
Syntax
Orep_Rs_Application_Instance_Publish (OrepT_Rs_Application_Instance *instance_ptr, OrepT_Rs_Info *info_ptr, char *err_msg, int err_msg_len, int options)
Return Type
int
Status of the publishing attempt (see Details).
Header
orep_report_server.h
Details
This function gathers all of the information necessary for publishing the reports, generates the XML meta-file, zips together the individual documents, and sends them via HTTP to Report Server.
If an error occurs, err_msg is filled in with the message received from Report Server. The buffer size should be set in err_msg_len.
The options flag is not currently used and should be set to OrepC_Rs_Publish_Opt_None.
The return value will be one of the following symbolic constants:
OrepC_Rs_Success—Was able to publishOrepC_Rs_Archive_Error—Could not generate .zip fileOrepC_Rs_Meta_File_Error—Could not generate XML meta-fileOrepC_Rs_Index_File_Missing—No index file for collectionOrepC_Rs_Server_Connection_Error—Could not connect to serverOrepC_Rs_Server_Transfer_Error—Could not transfer to serverOrepC_Rs_Error—Other error in publishing