Need Table and Subtable in RDLC


H

Herb

I need a Table object in my RDLC with 6 columns on the top several rows, but
1 column on the bottom two rows:

COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
-----------------------COLUMN1-----------------------------------------
-----------------------COLUMN1-----------------------------------------

I was able to acheive this (and get it to work in the development
environment) by adding a table of 6 columns into the header of a table
containing 1 column. When deployed it didn't work. Go figure.

Q1: Is there an equivalent to COLSPAN in the table object in a report?
Q2: Is there a way to have data from COLUMN1 cover empty cells COL2-6?
Q3: Do I need to create a subreport to acheive what I need to do?

Thanks,
 
Ad

Advertisements

C

Cor Ligthert[MVP]

Herb,

I did not use RDLC yet. However, don't expect that something as the COLSPAN
will be reused again in any collection It's a terrible thing in HTML, which
in my idea has givess mostl more trouble, then any advantage (but you should
use it in HTML).

Mostly are now used OOP collections, which means that a table has subtables
with their own definition.

http://msdn.microsoft.com/en-us/library/ms252067.aspx

Cor
 
J

Jialiang Ge [MSFT]

Hello Herb,

Tables in RDLC do not have an equivalent to COLSPAN. To achieve the effect

COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
-----------------------COLUMN1-----------------------------------------
-----------------------COLUMN1-----------------------------------------

You may consider having two tables with two data sources.

One for:

COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6

And the other for:

-----------------------COLUMN1-----------------------------------------
-----------------------COLUMN1-----------------------------------------

Regarding your current implementation that does not work when deployed,
does it throw any error message, or is it displayed not as expected?

Please let me know if you have any other concerns, or need anything else.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
H

Herb

Thanks for your suggestion. What I really need is:

RECORD 1
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 FIELD6
------------------REC1 FIELD7------------------------
------------------REC1 FIELD8------------------------

RECORD 2
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 FIELD6
------------------REC2 FIELD7------------------------
------------------REC2 FIELD8------------------------
....


When I do what you suggest, I get:
RECORD 1
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 FIELD6
RECORD 2
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 FIELD6
------------------REC1 FIELD7------------------------
------------------REC1 FIELD8------------------------
------------------REC2 FIELD7------------------------
------------------REC2 FIELD8------------------------

--
stullhe104


"Jialiang Ge [MSFT]" said:
Hello Herb,

Tables in RDLC do not have an equivalent to COLSPAN. To achieve the effect

COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
-----------------------COLUMN1-----------------------------------------
-----------------------COLUMN1-----------------------------------------

You may consider having two tables with two data sources.

One for:

COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6
COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6

And the other for:

-----------------------COLUMN1-----------------------------------------
-----------------------COLUMN1-----------------------------------------

Regarding your current implementation that does not work when deployed,
does it throw any error message, or is it displayed not as expected?

Please let me know if you have any other concerns, or need anything else.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jialiang Ge [MSFT]

Hello Herb,

"List" will be a good way to implement the effect:

RECORD 1
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 FIELD6
------------------REC1 FIELD7------------------------
------------------REC1 FIELD8------------------------

RECORD 2
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 FIELD6
------------------REC2 FIELD7------------------------
------------------REC2 FIELD8------------------------
...

Step1. Create a new report and set the data source accordingly

Step2. Drag & Drop a "List" control from Toolbox bar to the report.

Step3. Switch to the data source bar, drag&drop the fields 1~6 to the list:
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 FIELD6
And drag&drop FIELD 7 and 8 below the first line of FIELD 1~6.

Last, bind the report to the UI control, e.g. a GridView control in ASP.NET
and see the effect.

If you have any other questions or concerns, please DON'T hesitate to tell
me.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
Ad

Advertisements

H

Herb

Ge,

Thanks for your reply. Yes, the LIST solved my problem. I no longer need two
datasets in the report. Thanks.

Thanks,
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top