Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 30 SEP 1999 12:42:52PM Jim Jones wrote:

I've designed a report using 'Revelation Reporter'. I am trying to run the report from a form using a button control with 'CLICK event- QuickEvent Option-Execute a procedure'. The procedure uses the following line of code to call the report: key=repository('EXECUTE','INVOICE*REPORT**INVOICETEST')

For reasons not obvious to me (but hopefully to someone who, unlike me, actually has an understanding of OI) the above line of code did not work. I've looked in the manuals but could not find any examples.

Also, how do I have the report just print or preview the record that is currently displayed in the form when the button control is clicked?

Thanks for your help.

Jim


At 30 SEP 1999 01:15PM Stephen S. Revelation wrote:

Jim,

Something like this should do the trick:

declare function EntID
declare subroutine Repository, Set_Status
ReportID=EntID(@appid, "OIREPORT", "RDLAYOUT", "COLOR.RPT")
Set_Status(0)
Repository("EXECUTE", ReportID, "",1)  /*1 is for preview, 0 for print*/
return 0

The preview vs. print mode is commented above.

Regards,

-Stephen

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/2b28d359b815bc5d852567fc005bd0e1.txt
  • Last modified: 2024/01/04 21:00
  • by 127.0.0.1