Syntax 

int PCMSGetRpt(Trip trip, int rpt, char *buffer, int bufSize)


Parameters 

Trip trip – Handle to a trip.

int rpt – The report type.

char *buffer ­– The buffer that stores the report.

int bufSize – The number of bytes in the buffer

 

Description

Retrieves up to 64K bytes of a report (more in 32-bit) at once.

 

Return Values 

Standard Returns


Sample Code

  char buf[20000];
  int lines;
  
  /* Show detailed driving instruction for route */
  /* Index lines from 0. Buffer must be > 100 char */
  lines = PCMSNumRptLines(pracTrip, RPT_DETAIL);
  
  for (i=0; i < lines; i++)
  {
    PCMSGetRptLine(pracTrip, RPT_DETAIL, i, buf,100);
    printf ("%s\n", buf);
  }
  
  /* Get state by state mileage breakdown report*/
  length = PCMSNumRptBytes(pracTrip, RPT_STATE);
  PCMSGetRpt(pracTrip, RPT_STATE, buf, 20000);
  printf(“The entire state report:\n%s\n”, buf);


Supported Since: PC*MILER|Connect 15

Category: Trip Reports