index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Return Report Table Only :: (9)Post a New Message | Post a Reply
Dec 5 2004, 6:09 PM
 Return Report Table OnlyPost a Reply
 limbo1686

View this author's profile Send this author a private message

from: somewhere

Can you put a function in to return only the table of the report to a text string?


This would allow you to have more control over the display of the report with-in your page.

I imagine this function would look like this:

Function RunReport(ReportID as String, bShowTitle as Boolean) as String

The returned string would hold just the report table itself along with the navigation links unless you requested the title.  However no Home link etc...

This function could then be called and you could get the html back for the report and put it anywhere you wanted.


Dec 7 2004, 11:08 AM
 Re: Return Report Table OnlyPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

You can use:  DisplayReport(ByVal ReportId As String)

e.g. objWIz.DisplayReport(strReportId)

The returned string would hold just the report table itself along with
the navigation links unless you requested the title.  


That functionality is not directly available in the current version
but you can work around it by setting the title's display style
to none in your stylesheet - the CSS className is report_title

i.e.
replace
td.report_title{font-size:13px;font-family:arial;font-weight:bold;color:gray;}
with
td.report_title{display:none;}








-------------------------
Ghost
Dec 7 2004, 12:18 PM
 Re: Return Report Table OnlyPost a Reply
 limbo1686

View this author's profile Send this author a private message

from: somewhere

Will that call actually return the table into a String variable or will it try to write the data out to the Response object?

I don't want anything to go out the Response Object.  In fact, I would like to be able to use this inside another VB DLL where I format my pages and write them out myself.

So the call looks like this ??
strHTML = objWiz.DisplayReport(strReportID)

Since it doesn't seem like you offer source code, I may be asking for a lot of functionality additions :)

Dec 7 2004, 8:10 PM
 Re: Return Report Table OnlyPost a Reply
 limbo1686

View this author's profile Send this author a private message

from: somewhere

I just tried that and it doesn't return the html code to the string.  It would seem that the method call puts it out to the Response.Write.  So that will not work.

Dec 8 2004, 7:29 AM
 Re: Return Report Table OnlyPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

I will check if this feature can be added and let you know.



-------------------------
Ghost
Dec 8 2004, 5:06 PM
 Re: Return Report Table OnlyPost a Reply
 limbo1686

View this author's profile Send this author a private message

from: somewhere

Seems to me the hardest part of this could be the post-backs to do the navigation etc...

Dec 10 2004, 2:33 PM
 Re: Return Report Table OnlyPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

As of the version 2.4.76 this functionality has been added.
You can return the reports HTML using the GetReport function as follows:
strHTML = objWiz.GetReport(strReportID)

for more information, check this post




-------------------------
Ghost
Dec 10 2004, 9:11 PM
 Re: Return Report Table OnlyPost a Reply
 limbo1686

View this author's profile Send this author a private message

from: somewhere

Great!  As soon as I get my reg key (monday prob) I'll test it out!

Thanks.

Jun 21 2005, 8:52 PM
 Re: Return Report Table OnlyPost a Reply
 limbo1686

View this author's profile Send this author a private message

from: somewhere

This is still broke.

Pages: (1)   [1]

search this forum: