Telerik Forums
Reporting Forum
3 answers
502 views
hi,
  I am creating a pdf using telerik report.i want to apply watermark to that pdf dynamically..is it possible to apply watermark to that pdf file...

Regards,
Narmatha.P
Steve
Telerik team
 answered on 20 Aug 2012
1 answer
387 views
I'm in a bit of a muddle here, these reports worked fine, until I upgraded to the latest Reporting controls. Then I had some DLL issues and ended up uninstalling and re installing again.

The reports sit in a folder and are XML files.
These are deserialised for viewing

We are now getting the error - There was an error reflecting type 'Telerik.Reporting.Report'

This is the code that doe the de serialise:
'Create an XML reader object from the updated string
Using xmlReader As System.Xml.XmlReader = System.Xml.XmlReader.Create(New System.IO.StringReader(xmlString))
 
    'Create the report object and assing it the deserialised report definition
    Dim xmlSerializer As New System.Xml.Serialization.XmlSerializer(GetType(Telerik.Reporting.Report))
    Dim report1 As New Telerik.Reporting.Report
    report1 = xmlSerializer.Deserialize(xmlReader)
    report1.Report.ReportParameters(0).Value = imagePath
    report1.Report.ReportParameters(1).Value = Session("User_GUID").ToString
 
    'Assing the report object to the report viewer
    ReportViewer.Report = report1
End Using

I know its not the latest good practice but changing the serialiser to this

Dim xmlSerializer As New Telerik.Reporting.XmlSerialization.ReportXmlSerializer()
Dim report As Telerik.Reporting.Report = DirectCast(xmlSerializer.Deserialize(xmlReader), Telerik.Reporting.Report)

Gives the new error: - An error has occurred during xml serialization. The xml serializer cannot resolve type with name:

Searching the forum doesn't return any results, so guessing this is a new problem.
Andy

Steve
Telerik team
 answered on 20 Aug 2012
4 answers
403 views
I am confused.  I have a chart with 10 fields of numbers.  I select one field, go to format, and set the format to currency with zero decimal places.  Next I right click the field and select COPY STYLE.  Then I select the other 9 fields and select PASTE STYLE.  The format of the other 9 fields does not change.  I have tried selecting all the fields and then right clicking, but when I do that the format option is grayed out and unavailable.

I have had a similar experience where pasting the style from one field to another did not change the font size of the second field to match that of the first.  Doesn't COPY STYLE apply to all elements - size, font, color, bold,, etc?

I am not sure if I am doing something wrong, or if possibly something is corrupt in my Visual Studios installation.  It seems like this should work.

Thanks,
Kevin
Steve
Telerik team
 answered on 20 Aug 2012
1 answer
275 views
As the Title indicates, I had a version of my reports project working fine. I upgraded to 6.1.12.611 today and this line of code is throwing an error.

"SubReport7.ReportSource.DataSource = data"

The code snippet is as below

StartDate = ReportParameters("StartDate").Value
EndDate = ReportParameters("EndDate").Value
ID = ReportParameters("ID").Value
Source = ReportParameters("Source").Value
data = adapter.GetData(StartDate, EndDate, Source, ID)
SubReport7.ReportSource.DataSource = data

adapter is Table adapter and data is DataTable. Can you tell me why this code doesn't work anymore.
Steve
Telerik team
 answered on 20 Aug 2012
3 answers
168 views
I get "The service Telerik.Reporting.Design.Interfaces.IRootDesignerPresenter already exists in the service container." every time I change from one language to another on a report.  As reported in other threads, closing the report and reopening allows one to get by, but it is highly annoying if one is going to translate the same report into a dozen languages.
Peter
Telerik team
 answered on 20 Aug 2012
3 answers
87 views
I am testing the reporting tools, but I can't seem to get past this issue.

I have a small report (that I want to use as a sub report) and it contains a table in the GroupHeader that shows information. It should also contain a table in the Details area. If I add a table (drag and drop) and I click on Preview, I get the Object not set error. If I delete the table from the Details area the Preview works.

I have also tried adding data and it works fine. It is just the table that hates me.

Any ideas would be greatly appreciated.

Environment:
Visual Studio 2010 SP1 
SQL Express 2008 
Telerik Reporting Q2 2012 build 6.1.12.807


Steve
Telerik team
 answered on 20 Aug 2012
8 answers
777 views
Hi can anyone help me on this pls.

i am using telerik reporting "Telerik Reporting Q2 2010" in visual studio 2008. and (in add newitem i choose the telerik) and create a file called Report1.vb.

when i try to create sql datasource in properties by clicking "report parameters -> new sqldatasouurce -> new connection" it displaying the messge box "Object reference not set to an instance of an object.".

but it working fine in visual studio 2005. can create datasource.

not working in  visual studio 2008.

can pls help me :(
Jaco Hamilton-Attwell
Top achievements
Rank 1
 answered on 20 Aug 2012
3 answers
172 views
Hi

I added a new report to an already existing Report library  and strangely I am getting this error:

Could not load file or assembly 'Telerik.Reporting.Design.Interfaces, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified.

Can you please help me figure this issue..
Peter
Telerik team
 answered on 20 Aug 2012
9 answers
252 views
Hello Forum,
I upgraded my free trial Telerik Reporting installation to Licensed Q3 installation. When I upgraded a VS2010 web project using Telerik Upgrade wizard, I've started getting the Error: "Image Format Not Supported: Emf" in HTML Preview and in Report Viewer in ASPX page.
I tried to change the Image format property of the individual chart objects on the report to all the other formats listed, however that seems to be not accepting any other format than Emf.

Any suggestion to resolve this problem?
Satish
Top achievements
Rank 1
 answered on 20 Aug 2012
2 answers
356 views
I'm using Q1 2012 for an MVC 3 Application where a report is generated, attached to an email and sent.  The parameters are applied from an object model containing all report parameters and strings representing each value.  When applying the value in plain text, the report runs and attaches to the email as it should
EX.
Report.ReportParameter.Value[0] = "Value"

But when doing the same from the model, I receive an inner exception for an invalid parameter

Working Code:
rpt.ReportParameters[4].Value = Reporting.GetParametersObject("VAL1; VAL2");

But when the code is changed to this:
rpt.ReportParameters[4].Value = Reporting.GetParametersObject(email.EmailReportParameters.ToString());

I receive and inner exception error and the parameter value returns to null.

The GetParametersObject converts a string to an Object[].

The debugger shows the same values in both cases as type {string[]}

Model: (I've also tried an Object[] for EmailReportParameters with the same result)
public class EmailReport
    {
        public string EmailAddress { get; set; }
        public string EmailAttachmentExtension { get; set; }
        public string EmailAttachName { get; set; }
        public string EmailSubject { get; set; }
        public string EmailBody { get; set; }
        public String[] EmailReportParameters { get; set; }
    }

Single value parameters are working properly:
rpt.ReportParameters[0].Value = email.EmailReportParameters[0];

Error Detail:
InnerException   {"Invalid value of report parameter 'LineOfBusiness1'."}
 
   at Telerik.Reporting.Processing.Report.ResolveData()
   at Telerik.Reporting.Processing.Report.ProcessItem()
   at Telerik.Reporting.Processing.ReportItemBase.Process(DataMember data)
   at Telerik.Reporting.Processing.Report.Process(DataMember data, DataItemState state, Boolean processItemActions, Boolean documentMapEnabled)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(IReportDocument reportDocument, IDictionary processingContext)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo)
   at compucom.TrackIT.Reports.Controllers.EmailReportController.SendEmailReport(EmailReport email) in C:\Users\tk83673\Documents\Projects\ITOProdSolutions\TrackIT\USBank\compucom.TrackIT.Reports\Controllers\EmailReportController.cs:line 76
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
Thomas
Top achievements
Rank 1
 answered on 17 Aug 2012
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?