Telerik Forums
Reporting Forum
1 answer
103 views
Hi

I have created a couple of reports using Telerik reports. All looked good so we have emailed them to customers.

Customers have replied saying that when they print them they get big black boxes or failure to print messages.

The customers are using Adobe but we have also found version 4 of foxit pdf reader has issues as well. The latest version of Foxit does print the reports.

The code is below that produces the pdf 

   
Dim rptContract As New rptSinglePageContract
        Dim rptProcessor As New Telerik.Reporting.Processing.ReportProcessor
        Dim Contract() As Byte
        rptContract.reportHeader.ConnectionString = GetSQLConnectionString()
        rptContract.reportDetails.ConnectionString = GetSQLConnectionString()
 
        rptContract.ReportParameters("ID").Value = m_contract.ID
        Contract = rptProcessor.RenderReport("PDF", rptContract, Nothing).DocumentBytes
 
        If printersettings.PrinterName <> "" Then
            rptProcessor.PrintReport(rptContract, printersettings)
        End If
 
            IO.File.WriteAllBytes(outputcontractfilename, Contract)

I would have attached examples that you can print yourself to check but .pdf are not accepted. You can get them here http://dropcanvas.com/j10vd

What am I doing wrong? Obviously sending documents to customers that cannot be printed is not acceptable.
Cheers
Steve
Telerik team
 answered on 05 Jul 2012
1 answer
125 views
Is there any way to tell the designer to round widths and heights, or do a more granular method of snapping to the grid?  It is very tedious (and quite frankly, driving me nuts) trying to line up columns, panels and tables when the little triangles keep popping up telling me that my page is too wide or fields are overlapping, when for all intents and purposes, they are not.

When you are dragging textboxes into place and you aren't perfect with the mouse, it can take forever to figure out why the right border of a panel is not printing because the page width changed itself to 8.01 instead of 8 inches, because some field started at 0.01 instead of 0, or I dragged it to far to the right for a millisecond.  And even when they are exact to the designer, it can still say they overlap, and when you look at the Designer.cs code, it appears that it thinks it overlaps because a width isn't really 4.0 like it tells you, but 4.0045234235345345...

If you have any advice of how to make this problem go away, please let me know.
Massimiliano Bassili
Top achievements
Rank 1
 answered on 04 Jul 2012
1 answer
456 views
OK, let's check this off as a first-time stupid newbie question, b/c that's what its got to amount to.

It's my first Telerik report that has a Table control in the detail section and it is bound to a data source. In column 1 of the table is the expression [= Fields.InvoiceNum] and I get an invoice number for every row when I preview the report.

In column 2 of the table, I had an expression that basically amounted to Field2 divided by Field3. But this would always return a zero on every row of the report during preview.

For the sake of testing, my expression is currently [= 1 / 3]. This still returns a zero. If my expression is [= 1 + 3], I get 4. If it is [= 1 - 3] I get -2. If it is [= 1 * 3] I get 3. But [= 1 / 3] always returns 0. If I wrap the expression with [= CDbl(1 / 3)] I still get a zero, and the formatting is {0:#.0000}. So what gives? What am I missing here?

Thanks,
Steve
Peter
Telerik team
 answered on 04 Jul 2012
1 answer
231 views
I've a table item in the detail section of the report. I so far couldn't figure out how to bind just the table, not the entire report, to a data source at run time? Please advice how I can achieve this. Thanks.
Steve
Telerik team
 answered on 04 Jul 2012
11 answers
1.0K+ views

When I do a new report and I want to select the source of data using the wizard Telerik Reporting in the drop-down combo there is no data source (connection). I want to create a new connection and the following message when I press the button "Object Reference not Set to an instace of a object"

This problem also occurs when I want to add a new source of data in the contextual menu in the configure option

How can solves this problem? Thanks

RickyB
Top achievements
Rank 1
 answered on 03 Jul 2012
3 answers
431 views
Good Morning everyone,

i've the following problem. I have a report with hyperlinks assigned to a TextBox. Doing this with the following code in the Detail section:

Telerik.Reporting.NavigateToUrlAction url = new Telerik.Reporting.NavigateToUrlAction();
url.Url = "http://www.telerik.com";
this.textBoxBBlockNo.Action = url;

Working in the Telerik Visual Studio Report Designer i get my hyperlinks when i swtich to the preview tab. When i preview the report in the ReportViewer (WinForms), the hyperlinks are not there.

Any one else experiencing the same behaviour? i'm working on the latest version of Telerik Reporting (Telerik_Reporting_Q2_2012_v6_1_12_611_Dev).

Greetings,
Michael
Steve
Telerik team
 answered on 03 Jul 2012
2 answers
141 views
Hi,
I want to print user created reports in a Silverlight application. The reports will be created by users with Report Designer and imported in the application. Data will come from a database in the form of an IList of some business objects. I created a custom report resolver which returns an InstanceReportSource, but I get the following error: "ReportSource type address resolution not implemented.". Can you tell me if InstanceReportSource is supported in Q2 2012 and how should I use it?
Here is the code which creates the report:
public class ReportResolver : IReportResolver
{
    private readonly IReportResolver _parentResolver;
 
    public ReportResolver(IReportResolver parentResolver)
    {
        _parentResolver = parentResolver;
    }
 
    public ReportSource Resolve(string report)
    {
        ReportSource reportSource = null;
 
        reportSource = GetReportSource(report);
 
        if (reportSource == null && _parentResolver != null)
            reportSource = _parentResolver.Resolve(report);
 
        return reportSource;
    }
 
    public ReportSource GetReportSource(string report)
    {
        var settings = new XmlReaderSettings {IgnoreWhitespace = true};
 
        using (var xmlReader = XmlReader.Create(@"d:\repot.trdx", settings))
        {
            var xmlSerializer = new ReportXmlSerializer();
 
            var reportDocument = (Report) xmlSerializer.Deserialize(xmlReader);
 
            // Data will be read from database.
            reportDocument.DataSource = new List<int> {1, 2, 3};
 
            var reportSource = new InstanceReportSource {ReportDocument = reportDocument};
 
            return reportSource;
        }
    }
}
Alex
Top achievements
Rank 1
 answered on 03 Jul 2012
3 answers
216 views
i have a list of items that i want to render in one landscape page, right now the list shows like this

item1
item2
item3
item4
item5
....
.

i want to list the items until the bottom of the page then continue again from the top like so

item1    item4  item7
item2    item5  item8
item3    item6  item9

so i can have all items in One Page only

how can i achieve this ?

(i am using Q2 2012)


Steve
Telerik team
 answered on 03 Jul 2012
1 answer
95 views
Hi, I can't able to see the content inside zoom combobox of the Telerik reporting... I need to scroll the content to see this. For example if 100% means i seen only 0 %.  I need to click the content and scroll the content to see the full content.
Is it possible to increase width of zoom combobox in the telerik reporting. So that i can see the full content in combobox.

if you see the attached file, the zoom content is 100%. but it visible only 0 %. I need to increase width size of the zoom combobox.

Thanks.

Prabakaran
Steve
Telerik team
 answered on 02 Jul 2012
1 answer
81 views
Dear All,

Any help I would every appreciate.

I'm using IIS6, .Net4 32bit, Telerik web control and report version 6.1.12.611.

There are 4 params in the reports. 2 are hidden and 2 are datetime params.
I have checked my cookies, all have values.

I call this code to view the report:

Dim report As New Telerik.Reporting.InstanceReportSource
report.ReportDocument = New ReportHistory
 
With report.Parameters
    .Add("pUserName", Request.Cookies("username").Value)
    .Add("pUserID", Request.Cookies("senderid").Value)
    .Add("pFromDate", Now.Date.AddDays(-30))
    .Add("pToDate", Now.Date)
End With
 
ReportViewer.ReportSource = report
ReportViewer.RefreshReport()


Most of time I get the following error. 

Object reference not set to an instance of an object.

at Telerik.Reporting.Processing.ParametersManager`1..ctor(IReportDocument definition, ICollection`1 parameters)
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

OR

Report is unavailable or session has expired (rarely have this error)
Steve
Telerik team
 answered on 02 Jul 2012
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?