I have a report where I have setup a table and am using a subreport for the header and using the Page footer for the footer (Subreports can't be used in traditional Page Headers. I also have a Right pane. What i'd like to do is create a table that will use the space that isn't the header/footer/right pane for the body of a report but I can't seem to figure it out.
Is there any absolute positioning in RS? I'd love to be able to take the right pane (which is just a rectangle with sub-items) and say, please print this at x,y on every page. Am I asking too much?
My alternative approach (which I don't love) is to create an image of the template and use it as a page background, then draw the data over the the image. But that is hard to maintain long-term.
Ideas? Please?
Thanks,
Shawn Wildermuth
http://adoguy.com
http://magenic.comI haven't tried what you're doing yet, but am very interested in it. Are
you using rectangles to size and position elements? I'm finding that
placing items in rectangles gives me much more control over how they render
relative to each other.
--
'(' Jeff A. Stucker
\
Business Intelligence
www.criadvantage.com
---
"Shawn Wildermuth" <swildermuth_at_adoguydotcom> wrote in message
news:%23qiQwt71EHA.3616@.TK2MSFTNGP11.phx.gbl...
>I have a report where I have setup a table and am using a subreport for the
>header and using the Page footer for the footer (Subreports can't be used
>in traditional Page Headers. I also have a Right pane. What i'd like to
>do is create a table that will use the space that isn't the
>header/footer/right pane for the body of a report but I can't seem to
>figure it out.
> Is there any absolute positioning in RS? I'd love to be able to take the
> right pane (which is just a rectangle with sub-items) and say, please
> print this at x,y on every page. Am I asking too much?
> My alternative approach (which I don't love) is to create an image of the
> template and use it as a page background, then draw the data over the the
> image. But that is hard to maintain long-term.
> Ideas? Please?
> Thanks,
> Shawn Wildermuth
> http://adoguy.com
> http://magenic.com
Showing posts with label page. Show all posts
Showing posts with label page. Show all posts
Friday, March 23, 2012
Friday, March 9, 2012
Re-use data from SqlDataSource
I have a page containing a FormView, which gets its data from a SqlDataSource control and displays details of a job. Two of the fields are location and job title. I want to re-use this data to create a dynamic page title. I know I can do this by setting the Page.Title to what I want to, but do I have access to the data outside of the FormView to which the data source is bound? If so how? Or will I have to perform an additional SELECT statement to get this data again?
Hi
No need to perform additional Select statement. You can access the FormView data in DataBound event. Try the following code:
protected void FormView1_DataBound(object sender, EventArgs e) { Page.Title = ((Label)(FormView1.Row.FindControl("column1Label"))).Text; } Hope this helps.|||Brilliant. I've got that working nicely now, and discovered more events to play with
Thank you.
Subscribe to:
Posts (Atom)