|
Home About Structure Screenshots License Documentation Download Contact
Donation
SponsorPlease contact me to become a sponsor und get your logo here
|
DocumentationTurboReport is working with few functions. Each function exist to times. One for Milimeter (MM) and one for Inch (INCH). The are working same. The Documentation will only handle MM functions. You only need to replace MM to INCH and can use the functions the same way. Normal functions writeLineMM(colour as Color, height as double) Create a line in a needed color and needed height writeTextMM(text as String, colour as Color, size as Integer, font as String, align as String, is_bold as boolean, is_underline as boolean, is_italic as boolean) Draw a text to the report. Beside the text, you need to set the color, textsize, font, align und set if the text is bold, underlined for italic. You have to use all parameters. writeBreakMM(height as double, ignore_on_pagewrap as boolean) Create an break. It moves the y coordidate to the bottom, without any contents. When you set the second parameter false and through this functions a new page will created, the differenz of the break will start on the next page. Otherwise the new content will start on the top of the next page. writeImageMM(image as Picture, align as String, min_puffer as double) Draws a picture on the report in a needed alignment. You can set a min_puffer to prevent that a picture will be directly on the bottom of a page. This is important when you need text under the image. With min_puffer you can say you need this space under the image, otherwise do a pagewrap now. TableStartMM(padding as double, border as double, border_color as Color, default as Dictionary) Set configuration for the table. Set padding, border and border color. Set all default values for a cell to the default dictionary. ' set default table settings default.Value("width") = 20 default.Value("halign") = "left" default.Value("valign") = "top" default.Value("text") = "" default.Value("font") = "Arial" default.Value("size") = 10 default.Value("color") = RGB(0, 0, 0) default.Value("background") = RGB(255, 255, 255) default.Value("is_bold") = false default.Value("is_italic") = false default.Value("is_underline") = false default.Value("min_height") = 1 default.Value("border_left") = true default.Value("border_right") = true default.Value("border_top") = true default.Value("border_bottom") = true writeTableMM(columns() as Dictionary) writeTableMM(paramarray columns as Dictionary) Create a new line for the table. You decide if you add an array of Dictionary or any number a Dictionary to the function. The dictionary contains all information you needed. You can set all values which you used in the default configuration. When any value is not use, it will use the value from the default settings. TableEndMM Use this function when you are finish with your table. writeNextpageMM Use this function when you like wo do a page wrap manually. XY functions getErrorCodeMM Get the error code of the last function called. getErrorDescMM Get the error description of the last function called. Error Codes 100 = "no error" 101 = "make no sense" 200 = "report not created yet" 201 = "report not finished yet" 300 = "unknown type" 301 = "resolution invalid" 302 = "page size invalid" 303 = "margin invalid" 304 = "height invalid" 305 = "image invalid" 306 = "align invalid" 307 = "puffer invalid" 308 = "coordinate invalid" 309 = "font invalid" 310 = "width too small" 311 = "width invalid" 400 = "parameter missing" |
|
(c) by Compredia GmbH | Impressum |
|