Telerik Forums
Reporting Forum
13 answers
990 views
I am passing a connection string from my web application to my report class library using this technique:

In the Report.cs file I created a second constructor that accepts a string variable as the connection string.  I left the default constructor alone so the report would continue to work during designtime with the default connection string.  This passed-in connection string is working perfectly for the main report, but I am having difficulty getting the sub report to use the connection string that I am passing in.

I have tried updating the connection string of the sub report during these two events (from with the Report.cs file):

NeedDataSource and ItemDataBinding -- neither of these two events seem to allow me to override the default connection string associated with the sub-report.  How can this be accomplished?
Svetoslav
Telerik team
 answered on 25 Aug 2009
3 answers
137 views
Hi all,

i am rigth now testing the telerik wpf suite incl. reporting.

I have to code an application which consists a lot of wpf-forms (mixed with grid and stackpanel layouts). Each for should be able to be printed (also the components like checkboxes etc.).
My firsts attempt were using the build in printvisual(...) function of the PrintDialog. It looks fine but:

  • only on screen visible items are printed (i use the scrollviewer) but everything has to be printed out
  • there are no automatically pagebreaks done
  • i don't wanna to implement extra reports for each wpf-window, because they are nearly the same

In order to solve this i want to use your telerik reports. I took a look in the examples but nothing found.

Do you have an idea how to easily solve this, without double implementing the contents in the window and report?
Better would be a simple example :-)

Thanks for your service

Markus
Nikolay
Telerik team
 answered on 24 Aug 2009
0 answers
82 views
Let me explain:

Consider this dataset returned:

                  Column1         ParentID       SUMFIELD
                        A                         1                10
                        B                         1                10
                        C                         1                10

                        X                          2                15
                        Y                          2                15

I group by ParentID  and wantto display records as follows:

ParentID      
1
2
-------------------
SUMFIELD(10 + 15)        // here is pageFooter of the record

since all SUMFILED fields are same for the records of the same parent id, i just wantto get only one of from each group and add it with other ones from other groups in the page footer. So how can i do that? When i say  SUM(Fields.SUMFIELD) at the page footer it adds 10 + 10 + 10 + 15 + 15.

Thanks in advance...
Kem Arda
Top achievements
Rank 1
 asked on 24 Aug 2009
1 answer
136 views
I using Win. XP (T. Chinese Ver.) & VS 2005 and VB programming.
I put Telerik ReportViewer Control (Reg. Version) from ToolBox to a blank Form (first use Telerik Reporting).
An erorr message is displayed:

Cannot Create 'ReportViewer'. Error Message :
'System.NullReferenceException: : Object reference not set to an instance of an object.
 at Telerik.ReportViewer.WinForms.WinViewer.UpdateScrollSize()
 at Telerik.ReportViewer.WinForms.WinViewer.OnSizeChanged(EventArgs eventArgs)
 at System.Windows.Forms.Control.UpdateBouns(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
 at System.Windows.Forms.Control.UpdateBouns(Int32 x, Int32 y, Int32 width, Int32 height)
 at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
 at System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
 at System.Windows.Forms.ScrollableControl.ScaleControl(SizeF factor, BoundsSpecified specified)
 at System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
 at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
 at System.Windows.Forms.ContainerControl.PerformA...'

I try to download  trial version of Telerik Reporting (2009 Q2) for testing.
The result is same.

If I create ReportViewer By Code :  
    Dim rv1 As New Telerik.ReportViewer.WinForms.ReportViewer()
(Error message) =>  NullReferenceException was unhandled : Object reference not set to an instance of an object.

Please help !!
Thank you very much !!


Steve
Telerik team
 answered on 24 Aug 2009
1 answer
111 views
Hi!

I'm trying to convert a Crystal report to Telerik report but I'm having trouble figuring out what I should place in what sections of the new report, and could use some advice.

The report I'm trying to create is containing a purchase order.
In the header of the report are some customer information.
Under the customer information are order rows. If there are more rows that can fit on one paper, I want to customer information to show on the next page as well.

The people using the application wants to print all purchase orders that exists in the system.

So my questions are:
1) Shall I create one report containing all the purchase orders or shall I create a report per purchase order?
2) Since Telerik reporting only handle one data source, shall I flatten the data so each order row in my dataset contains the customer information?
3) What sections do I place what in ?

I'm thankfully for any advice you can give me cause right now I'm going in circles.

Regards,
Per
Hrisi
Telerik team
 answered on 21 Aug 2009
1 answer
126 views
Anyone run into this?
I'm using the latest Telerik Reporting in my solutions and I assume the Reporting Demo site is as well.  For any PDF export or render, I cannot copy an image from the PDF document successfully.  I'm using Adobe Reader 9.1.3.  I click an image in the document to highlight/select it, then right-click to get the "Copy Image" context menu.  The paste results are the correct dimensions of the *embedded* image, but the image contents from the clipboard results in a filled black box.  I ran several of the demo reports from the Telerik site directly and get the same blacked-out image each time.  I googled for random pdf's posted on the web and each time I was able to copy the images from those successfully.  The problem is isolated to the PDF's generated using Telerik Reporting from my experience so far.  Is there a setting in Reader that I'm missing or a document property I should be setting in code???
Chavdar
Telerik team
 answered on 20 Aug 2009
0 answers
117 views
A                        B                    C                   D            E        F                    G                                Date                                   
40425.00         10800.00         102             102         25         25                 wert                         NULL                                 
40125.00         1500.00           102.01        102         25         175                 asd                        NULL                                 
50.00               0.00                 102.01.01   102         175       176                 asd                        2009-01-01 00:00:00      
5000.00            0.00                102.01.01   102         175       176                 asd                        2009-01-03 00:00:00         

I have two groups one in onother, first groups concerns column and, other concerns column C under the group that concerns D.
What i wantto do is to make all the fields of record(whole line) bold, when the record's Date column is null as follows:

A                        B                    C                   D            E        F                    G                                                              
40425.00         10800.00         102             102         25         25                 wert                                                     
40125.00         1500.00           102.01        102         25         175                 asd        
5050.00(*)             0.00           102.01.01   102         175        176                 asd                      

(*) SUM of the field A  actually, and so is 0.00 next to this field.

So how can i do this?

Thanks in advance...

Kem Arda
Top achievements
Rank 1
 asked on 20 Aug 2009
7 answers
437 views
I am evaluating Telerik Reporting tools. I watched your video on adding parameters to a report. I also am using the sample reporting projects code where it displays the report's name in a grid, on selecting the report, it opens the report in another windows and displays the information.

I created a report with a parameter "Team". I can view the report's contents correctly and change the team and get back data within the html preview. Once I try to use the grid to select the report and display outside of VS 2008 I get the error "Object reference not set to an instance of an object".  Not sure why.

I did take the same dataset and not use parameters and the data comes up fine. Any ideas?


Thanks,
Dwayne
Dwayne Starkey
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
85 views
Hi.

I downloaded the last trial version of the Telerik Reporting product. I did a simple example and I uploaded the application to the shared hosting, but I still receive the message. Am I doing something wrong? Do I need to configure something?

"
Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.
"

Chavdar
Telerik team
 answered on 20 Aug 2009
1 answer
173 views
I am looking at creating a pair of ASHX handlers along the lines of www.site.com/DocAsPDF.ashx and www.site.com/DocAsJpg.ashx.

I was going about it manually, and its not to much effort really, but getting one code path to support both image files and PDF as output is a pain, while also rendering arbitrary html ( My data source to be rendered is an arbitray list of strings in partial html format, for example <DIV>Hi, hows it going</div> could be one line, <B>Fine</B> could be another and lastly <font color:red>RED</font> could be another ) into a jpg actually is a bit of a giant pain in the arse!

So, I got to thinking, hey, I already own Rad Reporting as part of my Rad Controls suite, I wonder if it could do the trick???

So, this is my question.  Would it be feasible from a performance perspective to generate PDF or JPG files on the fly, using Rad Reporting in an ASHX handler, or am I going down a path to ruin?  I would probably be generating a few thousand a day and don't want to put an incredible load on my server ( which I have full control over, so trust issues aren't, um... an issue ), but I would like the results to be relatively real time.  Finally, I need the actual output from the ASHX handler to be an actual JPG or PDF, so I can't use a report viewer.

Should I pursue using Reporting for this, or go a different route?

Thanks,
Mike

( Question is open to anyone, not just telerik, as it is as much opinion as technical.  Assistance appreciated )
Tom
Top achievements
Rank 1
 answered on 20 Aug 2009
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?