ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

calling a rpg report program to be displayed/saved in windows form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • calling a rpg report program to be displayed/saved in windows form

    im wondering if it is possible to call a rpg report program using vb.net, display the generated report on my windows form and later on save it in text or pdf format ??

    i'd like to do that so that i wouldn't have to recode the printing program in .net.

    thanks
    Last edited by alexi; April 24, 2009, 12:07 AM.
    FYI I'm new to RPGLE

  • #2
    Re: calling a rpg report program to be displayed/saved in windows form

    You could use this fairly simple example (http://www.brainblox.co.za/spreadsheet.php) to create the report as a spreadsheet on the IFS. From there you can do what you want with it - pull it into a Windows app on the network, http it, mail it, whatever.

    On that same page, check out the link to the original PHP class that I emulated. Using a Windows based dev platform, you should be able to quite easily convert the PHP into VB. The main thing is to get the data-types right, otherwise the spreadsheet programs (Excel, Calc et al) are going to tell you that the file is borked.

    Comment

    Working...
    X