Telerik Forums
Reporting Forum
13 answers
1.1K+ views

The reports work great in vs2005 but when i uploaded this change to my webstie and add all necessary references to the bin directory the report viewer doesn display reports 
the viewer is there but all the buttons show up as missing images

anyhelp with this would be great. I am using Q2 2007 reporting and i have added 

  • Telerik.Reporting.dll
  • Telerik.Reporting.Processing.dll
  • Telerik.Reporting.Interfaces.dll
  • Telerik.ReportViewer.WebForms.dll

and the charting dll to the bin folder

regards

Brad

Rahul
Top achievements
Rank 1
 answered on 02 Aug 2015
4 answers
799 views

Hello,

I am using the standalone designer and displaying reports on the web.

 In the standalone designer the table cell looks OK with text vertically aligned in the middle.  (First example in attached image.)

 On the web the bottom half of the cell cuts off (Second example in attached image.)

 Also, if I try and add padding on the left of the table cell, the cell shrinks in width by that amount and starts cutting off the right side of the cell (Third example in attached image.)

 When I export these reports to PDF it displays properly (same as in Report Designer).

Any thoughts here?

Jeff
Top achievements
Rank 1
 answered on 31 Jul 2015
3 answers
91 views

Hi all,

i'm working on C# , Silverlight with MVVM concept , I'm using Silverlight Report viewer to print or print preview the reports .

this report viewer is calling by using the wcf services here my report is loading slowly I checked with fiddler and found that the service is calling the service is calling  4 times here I have attached the image of that and piece of code how I implemented. i'm thinking because of calling 4 time the report is loading slowly .And here is a question can we use  HTML5 report viewer instead of Silverlight Report Viewer ? does this work fast compare to Silverlight report engine?.

 

Thanks

Prashanth.

 

 

Stef
Telerik team
 answered on 31 Jul 2015
2 answers
372 views
I am currently trying to take an embedded image out of a report's .resx file and point it (relatively) to a file in an images folder in the same project.  I have tried every combination of the relative path in both Report designer and even setting it in C# in the report's constructor in the code behind.  When I set the pictureBox's value to .\Images\fpi-ontarget-letterhead-black.jpg , it works in design mode, but in preview mode, I get the error: "Invalid URI: The format of the URIcould not be determined."  I noticed that if I set an absolute path on my hard drive, it will work, but I would like to avoid that.  I would like to get it working with a relative path.  Thank you in advance.
Mike
Top achievements
Rank 1
 answered on 30 Jul 2015
13 answers
976 views
Hi,
Is there a sample we can download to see the example on how Telerik Reporting is used in WPF MVVM? If there is, would you please let me know where to download it from.

Cheers...
Stef
Telerik team
 answered on 30 Jul 2015
2 answers
213 views
Hello,

I use the following method to export report from console application.
The problem is that the generating report is exported only in default culture (en).
Setting the Thread.CurrentCulture and Thread.CurrentUICulture has no effect.

private void GenerateReportFromSource(InstanceReportSource reportSource, ReportType reportType, String path, CultureInfo cultureInfo)
        {           
            LocalizationInfo.Culture = cultureInfo;
            Thread thread = new Thread(() =>
            {
                try
                {
                   ReportProcessor reportProcessor = new ReportProcessor();
 
                    RenderingResult result = reportProcessor.RenderReport(reportType.ToString().ToUpper(), reportSource, null);
 
                    FileInfo info = new FileInfo(path);
                    if (info.DirectoryName != null && !Directory.Exists(info.DirectoryName))
                        Directory.CreateDirectory(info.DirectoryName);
                    File.WriteAllBytes(path + "." + reportType.ToString().ToLower(), result.DocumentBytes);
                }
                catch (Exception e)
                {
                    Logger.WriteException(e);
                }
            });
            thread.CurrentCulture = cultureInfo;
            thread.CurrentUICulture = cultureInfo;
            thread.SetApartmentState(ApartmentState.STA);
            thread.Start();
            thread.Join();
        }

Thanks in advance.

Best regards,
Geoffrey
Stef
Telerik team
 answered on 30 Jul 2015
1 answer
186 views

So, I've set up a "component" for a project-level data source as described here: http://www.telerik.com/help/reporting/data-source-how-to-add-project-data-source.html

I've added the new data source to a report, and I have added a table to display the data.

When I go to the Html Preview I get an error " An error has occurred while processing Report 'Xxxx': The ConnectionString property has not been initialized."

While I was following the directions for the component, I had selected a ConnectionString and added in a SQL query with parameters and I was able to preview the data and it was looking just fine. But, now that I've added it to the report I need it in I get the above error.

 Any helps? I'm using the latest Q2 2015 tool.

Thanks,
Ken

Nasko
Telerik team
 answered on 29 Jul 2015
2 answers
149 views

Error saving the file in pdf format within the .pdf file with the message:

 An error has occurred while processing Report 'Report1':
Object with name 'Report2' already exists. Object should have unique names.

Can someone help me?

Matheus
Top achievements
Rank 1
 answered on 29 Jul 2015
1 answer
128 views

Found another issue when embedding the Report Viewer within a bootstrap site.  I found all my reports showed what looked like cell spacing in a table - see TelerikReportingBootstrapBefore.png.  This happened in Normal Viewing mode and Print Preview mode.

 All you need to do to fix it is add the following bold text before the #reportViewer1 style.  This fixes the issue for the report viewer and turns the report back to normal - see TelerikReportingBootstrapAfter.png.

<style>
        * {
             box-sizing: content-box!important;
         }

        #reportViewer1 {
            position: absolute;
            left: 5px;
            right: 5px;
            top: 5px;
            bottom: 5px;
            height: 100%;
            overflow: hidden;
            font-family: Verdana, Arial;
        }
    </style>​

Stef
Telerik team
 answered on 29 Jul 2015
1 answer
153 views

I have a ReportViewer in my WinForms application to show some data in the form of a Telerik Report. I also have some textboxes, which will update the Report when the user leaves the textbox and the text has been changed.

private void SpediControl_Leave(object sender, EventArgs e)
{
    Control ct = sender as Control;
 
    // check if text in textbox has been changed
    if (ct.Text != s) // s is the text of the textbox
    {
        // update spedi report
        InstanceReportSource repSrcSpedi = new InstanceReportSource();
        repSrcSpedi.ReportDocument = new Spedi(this);
        repViewerSpediPreview.ReportSource = repSrcSpedi;
        repViewerSpediPreview.RefreshReport();
    }
}

After​ leaving a textbox, the ReportViewer gets the focus on itself. So I'm using UpdateUI event. To test if it gets fired, I just call a MessageBox:

private void repViewerSpediPreview_UpdateUI(object sender, EventArgs e)
{
    MessageBox.Show("aaa");
}

To my surprise, the message box gets called 8 times. First, I thought the "_Leave()" event must have an error. But the Leave event is only triggered once (as expected). It's only the UpdateUI event which is triggered multiple times. Everything else is working as expected. Is this a known bug or can anyone please provide me some help?

Regards,
Danilo

Stef
Telerik team
 answered on 29 Jul 2015
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?