Home > Examples, Features, Implementation, Programming > Additional Samples

Additional Samples

August 28, 2013

With the release of 1.95, we have included a second set of samples in the Samples2 file.   These samples are more advanced and demonstrate the powerful features of Windows mode and scripts.  You can copy these reports and modify them as you want. Included are:

  • Digital Clock – This report when viewed in Window View will show the current time and update each second.
  • Current US Radar – This report will display the current US radar map.   If viewed in Window View, it will update automatically every 60 seconds by the use of the numeric parameter, WindowViewTimer.  The report can be easily modified to show a different region.
  • Disk Space – This report uses gauges and a script that reads the drive space on disk C and shows disk space used and disk space free.
  • Edit Global and User Parameters – This unique report is actually an interactive form showing how you can change data and update the global and user parameters.  Reports are not read only anymore.
  • Get IP – This report will get your current Internet IP address.   It will check it against a previous value created by this report and stored in a Global Parameter.   If the IP is different, the report runs.  If it is the same, the report will not produce any output.   This is useful if you want to email or text yourself if your IP changes.  This shows you how you can save data to the parameters.  Solves dynamic IP issues.
  • Get Web Page – This report shows you how easy it is to capture a Web Page and load the HTML into a Rich Text Control.
  • Hurricane Report – Captures an image from the internet.
  • Main Menu – The report is actually a customizable main menu for Sunset Reports.   You can use this as a starting point for your own menu.   Make sure you set the preference for the starting form to be “Main Menu Report Definition”.   If you need to get back to the regular program interface, close this menu holding down the Ctrl key.
  • Photo Album Slide Show – This report shows you how to display all the images in a folder in a report.   The script contains the code to create a file list from the parameter “Picture Folder”.  The file list is stored in a file named Index.XML.  This file is then used as the data source by using the report parameter XML Data Path.  You can change the design of the report to show one picture on a page.  Then using Window View, the pictures will cycle.
Advertisements