Telerik Forums
Reporting Forum
1 answer
155 views

Hello!

Is there a way I can tell the report engine NOT to generate pages? I like to merge a report image to email content (not as an attachment). So far I tried this:

1. JPEG has only One page
2. TIFF has separate pages but email clients are not able to page
3. MHTHL is great but I could not find a way to merge this format to ASP MailMessage (only html)

Any idea how I can reach my goal?

Thanks

 

WombatEd
Top achievements
Rank 1
 answered on 14 Jan 2011
1 answer
77 views
Hi, 

I have created a report that groups by the company numbers and set the pagebreak after each group at the groupfooter .  I am just wondering if it is possible to add an extra page (cover page) before each group that could show the company number and company name.  

Thank you


update:  Never mind.. I got it.
Peter
Telerik team
 answered on 13 Jan 2011
2 answers
118 views
Hello,

I have a report that has 2 groups.  First group is By Week, second group is By Day.  I set up the report with 7 columns, 1 for each day of the week.  So, for 1 page it is grouped for that 1 week and each column displays results for each day of that week.

The report works however, when a column overflows, it wraps to the next column thus throwing off the mon-sun (7) column structure per page.  I have PageBreak set to After for the PerDay Group Section footer.  For the PerDay group itself, I have GroupKeepTogether to None.  I've tried changing this and it still does not work.  I would like when a column is too large for that page that it goes to the next page with the same grouping.

I can't seem to figure out how to restrain the columns from wrapping on the same page.  I've read that GroupKeepTogether would take care of this but it doesnt seem to work.

Please help, I've been at this for awhile now and still no luck.

Thanks in advance!!
 
Johnny
Top achievements
Rank 1
 answered on 13 Jan 2011
1 answer
77 views
There's plenty of tutorial out there that explains how to use the report designer, but not much about how to display a report on a webform once it's designed.  Does anybody know of any tutorial that covers use of the ReportViewer?
Peter
Telerik team
 answered on 13 Jan 2011
2 answers
1.0K+ views
Accelerate your learning using Telerik’s new series of self-paced tutorials! Written in a courseware format by our friends at Falafel Software, the tutorials cover every aspect of the Telerik development tools - from basic implementations for beginners, to special techniques and tips for advanced developers.

After the glamorous success of the RadControls for ASP.NET tutorial, we are  happy to offer you a step-by-step learning guide for Telerik Reporting. It is available at no charge here:

Step-by-step Tutorial – Telerik Reporting

Please share your feedback! We will be happy to hear your input on how this resource helps you in your projects and how we can further improve it.

Best Regards,
Telerik Team
Peter
Telerik team
 answered on 13 Jan 2011
1 answer
259 views
Hi,

I am using Telerik Report Q3 2010 SP1 (4.2.10.1221).
I created a master report and would like to add several sub-reports to it at run time with different data sources.

With the follow code, it generates what I want: (see attached image: expected.png)
public MasterReport()
{
      InitializeComponent();
      AddSubreports(111);
}

private void AddSubreports(int headerId)
{
        ReportDataSource c = new ReportDataSource(headerId);
        dss = c.GetSources();
        foreach (ParameterValuesReportDataSource ds in dss)
        {
            IndividualParameterReport subreport = new IndividualParameterReport(ds);
            SubReport subReport = new SubReport();
            subReport.Size = new SizeU(Telerik.Reporting.Drawing.Unit.Cm(8), Telerik.Reporting.Drawing.Unit.Cm(1));
            subReport.Dock = DockStyle.Top;
            subReport.ReportSource = subreport;
            detail.Items.Insert(0, subReport);
        }
}

However, I need to get the headerId first before I can call AddSubRepots method, so I modified the code to such:
public MasterReport()
{
InitializeComponent();
DataSource = null;
NeedDataSource += new EventHandler(MasterReport_NeedDataSource);
}
 
void MasterReport_NeedDataSource(object sender, EventArgs e)
{
headerId = Int32.Parse(ReportParameters["ParameterHeaderId"].Value.ToString());
AddSubreports(headerId);
}
Please see attached image: wrong.png 

The first two tables should contain 2 rows and the third one should contain 5 rows, but it only shows 2 in this case.
If I modified the order of my data source, show "Material" first, all tables display 5 rows.
Can someone help with explaining what's happening here?

Thanks,

VH
Peter
Telerik team
 answered on 13 Jan 2011
1 answer
159 views
I have Telerik reporting in my silverlight application. How to make the ReportService to work with both http and https at the same time? If I make it to work with https it stops to work with http and if I make it to work with http it stops to work with https.
Steve
Telerik team
 answered on 13 Jan 2011
1 answer
65 views
In visual studio, the report and all his subreports are rendering well, but in the browser I have the following error message on every subreport : Format of the initialization string does not conform to specification starting at index 0. The parameter is a string (the id of an employee) and subreports show other data from that employee. My project is a web app (ASPx) on sql server 2008 and VS 2010. Thanks for help (I am a french speaker, so...)
Steve
Telerik team
 answered on 13 Jan 2011
4 answers
230 views
Hi

right now for my current project, whenever i create a new reportViewer to show my report and i always get the error message:
XamlParseException Occurred
Failed to assign to property 'System.Windows.ResourceDictionary.Source'. [Line: 5 Position: 36]

Note that i have just updated to the Q3 for my report(before updating i even get the error message in the design mode, however by using Upgrade Wizard to update to Q3 the error at design mode is gone). Right now only at runtime . And my silverlight control is using the latest Q3 too

My reporting version is 4.2.10.1221
my silverlight control version is 2010.3.1110.1040




I ABSOLUTELY have no idea what is going on. For my current project, i try to create a NEW simple page which only contains ReportViewer control (nothing special, no source supply too). And try to test it but still get the error
However, if i create a NEW PROJECT, with the same simple page which contains the ReportViewer only , then everything runs fine.
So i think there must have some compatible issue here.

I tried to clean the solution and rebuild it but no luck too


this is the stack trace:
System.Windows.Markup.XamlParseException occurred
  Message=Set property 'System.Windows.FrameworkElement.Style' threw an exception. [Line: 14 Position: 41]
  LineNumber=14
  LinePosition=41
  StackTrace:
       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
       at SilverFinancials.WindowsReport.FinancialAccountReport.InitializeComponent()
       at SilverFinancials.WindowsReport.FinancialAccountReport..ctor()
  InnerException: System.Windows.Markup.XamlParseException
       Message=Failed to assign to property 'System.Windows.ResourceDictionary.Source'. [Line: 5 Position: 36]
       LineNumber=5
       LinePosition=36
       StackTrace:
            at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers)
            at System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle)
       InnerException: System.Collections.Generic.KeyNotFoundException
            Message=The given key was not present in the dictionary.
            StackTrace:
                 at System.ThrowHelper.ThrowKeyNotFoundException()
                 at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                 at System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
            InnerException: 


My xaml. It is very simple. A RadWindow contains the reportviewer . The window will be popped up through the clicked event of the menuItem in the RadRibbonbar.
<telerik:RadWindow x:Class="SilverFinancials.WindowsReport.CheckReport"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   xmlns:telerikReport="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
    mc:Ignorable="d"
                   Closed="Check_Print_Closed"
                   Header="Check Print"
    d:DesignHeight="300" d:DesignWidth="400" Width="970" Height="600">
     
    <Grid x:Name="LayoutRoot" Background="White">
        
            <telerikReport:ReportViewer  Name="checkReport" Width="970" Height="600"
 >
            </telerikReport:ReportViewer>
         
        
    </Grid>
</telerik:RadWindow>

Code behind
using SilverFinancials.Windows.Accounts_Payable.Posting;
using Telerik.Windows.Controls;
 
namespace SilverFinancials.WindowsReport
{
    public partial class CheckReport : RadWindow
    {
        
        public CheckReport()
        {
            InitializeComponent();
            }
             
             
     
    }
}



plz help me
Tai
Top achievements
Rank 1
 answered on 13 Jan 2011
1 answer
563 views
I have a text field in a report we are using to display multi-line string data from a database that contains tab characters (ascii 9).  These are getting compressed to single spaces or just not getting displayed at all.  Is there any way to print text with tabs and have the report process the tabs correctly?  We tried the HTML control as well and not able to find an answer with it either, plus it does not process cr/lf either (have to replace those with <BR> tags), which the text field does correctly.  We are using Q2 2010 right now, not seeing anything in Q3 2010 that would give us any help with this.  We have many customers displeased because what they are expecting is not what they see on these reports. Thanks for any advice you can give.
Peter
Telerik team
 answered on 12 Jan 2011
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?