Command disabled: backlink

Export into file

To export report results into a file, use the command report/export_result:

svc=report/export_result&params={"format":<uint>,
				 "pageOrientation":<text>,
				 "pageSize":<text>,
				 "pageWidth":<text>,
				 "coding":<text>,
				 "delimiter":<text>,
				 "headings":<text>,
				 "compress":<text>,
				 "attachMap":<text>,
				 "extendBounds":<bool>,
				 "hideMapBasis":<text>,
				 "outputFileName":<text>}

:!: Current request can't be executed simultaneously with following requests:

Parameters

Name Description
format file format (see below)
Optional parameters: on default
compress compress report file: 0 - no, 1 - yes 1
pageOrientation (pdf) page orientation : portrait, landscape portrait
pageSize (pdf) page format: a4, a3 a4
pageWidth (pdf) page width: 0 - fixed, 1 - compact, 2 - no-wrap 0
coding (csv) encoding: utf8, cp1251 utf8
delimiter (csv) delimiter: semicolon comma
headings (csv) display headers: 0 - no, 1 - yes 0
attachMap attach map (only for PDF and HTML): 0 - no, 1 - yes 0
extendBounds extend map to include geozones (only for PDF and HTML): 0 - no, 1 - yes 0
hideMapBasis hide map layer: 0 - no, 1 - yes 0
outputFileName file name Online_report

:!: Clarification for extendBounds:
- new logics implemented: on default the map is zoomed to fill tracks/markers/icons;

  1. when option enabled: map is also zoomed to fill geozones (they will be displayed on map);
  2. map won't be displayed at all if no zoom elements available (no tracks/markers/icons for default logics plus geozones for extendBounds enabled)

File formats:

  • 1 - html;
  • 2 - pdf;
  • 4 - xls;
  • 8 - xlsx;
  • 16 - xml;
  • 32 - csv.

Response

Returns a file of demanded format.

Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam