Normal Topic Using XResultSetPrintReport() (Read 464 times)
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Using XResultSetPrintReport()
Nov 20th, 2008 at 5:38pm
Print Post Print Post  
Hello!

I want to use @XResultSetPrintReport(Report name to print , vRs, mode)

XResultSetPrintReport("Fahrdienst!Fahrten!Fahrbericht",vRS,REPORT_MODE_PRINT_ONL
Y_PREVIEW)

Fahrdienst is a Form
Fahrten is a Subform
Fahrbericht is the Report on the Subform (Fahrten)

the Report is attached to the same database (the Subform Fahrten)  as the one from which the result set records
were retrieved.

Sesame shows the error with an arrow on the report declared path : "Fahrdienst!Fahrten!Fahrbericht"

I believe that there is a declaration error.

I ask you for a support and thank you in advance.
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Using XResultSetPrintReport()
Reply #1 - Nov 20th, 2008 at 6:16pm
Print Post Print Post  
You should only need the name of the Report. Try this:

@XResultSetPrintReport("Fahrbericht", vRS, REPORT_MODE_PRINT_ONLY_PREVIEW)

Also, you need to assign the value returned to something.

Code
Select All
var vTemp as String

    vTemp = @XResultSetPrintReport("Fahrbericht", vRS, REPORT_MODE_PRINT_ONLY_PREVIEW)
 

  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged