Telerik Forums
Reporting Forum
1 answer
50 views
I have an existing report that needs to have 2 columns where each cell in the column be underlined, where would I find an example on how to do that, or what avenue can I explore to learn how to do that?  Thanks
Peter
Telerik team
 answered on 30 Apr 2013
4 answers
450 views
Hi,

We are facing issues with report viewer printing. I tried telerik's online demo on my machine the following browsers.
Chrome, FireFox, Safari, IE 10. all working great except Safari.

I have downloaded and upgraded my solution with Telerik_Reporting_Q1_2013_build_7.0.13.220 however report viewer print is not working. It neither open print dialog nor download the PDF on print click for FireFox, Safari, IE 10 where as works great with Chrome.

as the next step I have download CSharp report examples "Telerik_Reporting_Q1_2013_build_7.0.13.412_TRIAL" one of your internal build. When i run the solution result is same, print is not working. It neither open print dialog nor download the PDF on print click for FireFox, Safari, IE 10 where as works great with Chrome.

I have Adobe reader version 11 installed on my machine.

Please advice.

Thanks,
Anuj


 
Stef
Telerik team
 answered on 30 Apr 2013
1 answer
204 views
Hi team,
I want to create a navigate to URI by coding and that URI contain expression.
basically there is a textbox and i want to add a hyper link on it but when its value equal 0 then i don't want to enable hyper link feature.

this is the URI  :

="Reports/AttendeesProfiles.aspx?QRCodeID=" + Fields.QRCodeID+ "&QRCodeTypeDesc=" +  Trim(ReportItem.Parent.DataObject.QRCodeTypeDesc) + "&QRCodeName=" + Trim(Fields.QRCodeName)  + "&IsQRCodesType=False"

regards,
Mohammed
IvanY
Telerik team
 answered on 30 Apr 2013
2 answers
255 views
I have created a report and everything that I have done works, except the checkboxes. 

In my picture I have highlighted the data that it gets when the report runs. The checkbox is set to the exact same expression as the test field I am using which has the red box around it. The checkbox should be checking with the value that its getting.

Why is the checkbox not checking? This seems to be a pretty simple exercise.

Thanks,
Charlie Hawk
Sandra
Top achievements
Rank 1
 answered on 29 Apr 2013
2 answers
118 views
I am wondering that there is a way to have the details section repeat based on a data value.

The exact circumstances are these:
I have a table of items ordered (Order_Details) with the columns (OrderDetailID, ProductID, Quantity, etc)
I have a second table with the product information (Products) with columns (ProductID, ProductName, Barcode, etc.)

What i am trying to do is create a report with the barcodes for all the items sold.  
The catch is, i need the details area of the report to print once for each Quantity rather than once for each record.
E.g. if i have product #1 quantity 4, the barcode for product #1 should print 4 times, rather than once.

Is there a setting or option i'm missing, or am i going to have to do SQL magic for this one?

Thanks!


H
Top achievements
Rank 1
 answered on 29 Apr 2013
1 answer
123 views
Hi, recently started using the free trial of Telerik Reporting in my MVC project. So what I do is, on the client side, when a button is pressed, it sends down an ID to the controller which calls GetReport to get data matching the ID, and then return a report back to the client. However, I keep getting this error <ExceptionMessage>Invalid value of report parameter 'id'.</ExceptionMessage>.

What am I doing wrong? I think I'm doing this correctly going by the resources: http://www.telerik.com/help/reporting/entitydatasource-connecting-to-entity-data-model.html

NB: int _stuffId is never null, it does have a value when I debugged the app.

// ReportRepo.cs
 
public Report GetReportData(int _id)
{
    return m_context.Stuff.SingleOrDefault(c => c.StuffId == _id);
}
 
// controller
public HttpResponseMessage GetReport(int _stuffId)
{
    try
    {
        EntityDataSource entityDataSource = new EntityDataSource();
        entityDataSource.ObjectContext = typeof(ReportRepo);
        entityDataSource.ObjectContextMember = "GetReportData";
        entityDataSource.Parameters.Add("_id", typeof(int), _stuffId);
 
        Report1 report1 = new Report1();
        report1.DataSource = entityDataSource;
 
        ReportProcessor reportProcessor = new ReportProcessor();
        InstanceReportSource instanceReportSource = new InstanceReportSource();
        instanceReportSource.ReportDocument = report1;
        RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);
 
        HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
        var stream = new MemoryStream(result.DocumentBytes);
        response.Content = new StreamContent(stream);
        response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");
        response.Content.Headers.ContentDisposition = new System.Net.Http.Headers.ContentDispositionHeaderValue("attachment");
        response.Content.Headers.ContentDisposition.FileName = result.DocumentName + "." + result.Extension;
 
        return response;
    }
}
Ken
Top achievements
Rank 1
 answered on 29 Apr 2013
2 answers
605 views
We have a Silverlight application that uses an embedded Telerik report viewer to display a Crystal Report. The application consumes a Silverlight WCF.  Connecting the WCF to listboxes, comboboxes and the datagrid work fine.  However, the error below is thrown when attempting to bind the WCF to the report viewer. Any suggestions as to why this is happening and how to resolve it?  We've reviewed other questions on this forum that are similar to this issue but none of the answers worked for us.

"Content Type text/xml; charset=utf-8 was sent to a service expecting application/soap+xml; charset=utf-8.  The client and service bindings may be mismatched."

Thank you.
Stef
Telerik team
 answered on 29 Apr 2013
3 answers
291 views
dear team,
i have a textbox located in a group section in a sub report.
basically i just want to access this textbox from my main report and get its value.
Hadib Ahmabi
Top achievements
Rank 1
 answered on 29 Apr 2013
3 answers
801 views
Hi,

We are using telerik report version 'Telerik_Reporting_Q2_2010_v4_1_10_714_dev.msi'.

Previously, we have problem of having first page blank in the report viewer. So, to correct this problem, we added following code in the vb file and its working properly.

Public Sub New()
        InitializeComponent()
        detail.Height = Unit.Pixel(10)
    End Sub


But while exporting same report to PDF we are seeing first page blank in PDF. Here is the code how we are exporting report to PDF,

  Protected Sub ExportToPDF(ByVal reportToExport As Telerik.Reporting.Report)

        Dim deviceInfo As Hashtable = New Hashtable()
        deviceInfo("FontEmbedding") = "Subset"
        Dim reportProcessor As New ReportProcessor()
        Dim result As RenderingResult = reportProcessor.RenderReport("pdf", reportToExport, deviceInfo)

        Dim fileName As String = result.DocumentName + ".pdf"
        Response.Clear()
        Response.ContentType = result.MimeType
        Response.Cache.SetCacheability(HttpCacheability.Private)
        Response.Expires = -1
        Response.Buffer = True

        Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", fileName))
        Response.BinaryWrite(result.DocumentBytes)
        Response.End()

    End Sub


Do you have any idea how to resolve this?

Also, please see the attachment file which is the format of PDF we are getting.

Thanks
Peter
Telerik team
 answered on 29 Apr 2013
3 answers
287 views
hi all,

My report contains lot of tables and few of them are very wide.I have a horizontal scroll bar at bottom of the report.If a user want to view the table that is wide and it is at top of the report he has to go down the report scroll the horizontal scroll bar to right and come up to see the report.I want a horizontal scroll bar at top of the report too so he need not go down.can any one help on this.

thanks,
Bhanu
Hadib Ahmabi
Top achievements
Rank 1
 answered on 29 Apr 2013
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?