Telerik Forums
Reporting Forum
3 answers
234 views
Hi there

An old version of Telerik Reports (2.0.1.0) I have on a large web site will not compile (publish) when I have the latest version of your reports installed (5_1_11_713). It keeps adding a reference to the new version of the reports in my config file, even though the old version is all that is referenced.

It adds reference to the new version , and then errors out on a section of code that tries to create PDF files:

 buffer = Telerik.Reporting.Processing.ReportProcessor.Render("PDF", rpt, Nothing, mimType, extension, encoding)
 fs = New FileStream(lblPDF.Text & lstSelected.Items(intYCount).Text & ".pdf", FileMode.Create)
fs.Write(buffer, 0, buffer.Length)
  fs.Flush()
 fs.Close()


: The line " Telerik.Reporting.Processing.ReportProcessor.Render" comes back with an 'ambiguous namespace' issue. This code works fine when I uninstall the newer version of the Reports (5_1_11_713).

Thanks - David
Steve
Telerik team
 answered on 08 Sep 2011
2 answers
118 views
Hello.

I'm having trouble with a report. The data source is a list of objects, each of which I know to have certain public properties. My textboxes are bound to those properties in the usual way (e.g. "=Fields.Name").

I am getting errors in my report indicating that it could not find the properties for those textboxes, in certain cases. When my data source objects directly implement a public property "Name", all is well and I get data in the textbox bound to the property Name. HOWEVER, if my data objects inherit from another class, which has a public property "Name", then I get those nasty red boxes that say "An error has occurred while processing TextBox 'Name': The expression contains object 'Name' that is not defined in the current context".

Am I correct that the TextBox is not seeing inherited public properties? If so, is there something I can do so that those inherited public properties will show up in my reports?

Thanks!
Mark
Top achievements
Rank 1
 answered on 08 Sep 2011
0 answers
48 views
Deare All,

i want to know how to concatinate more fields in one textbox seperated by "/" in expression of text box
Mahmoud
Top achievements
Rank 1
 asked on 08 Sep 2011
2 answers
228 views
Hello.

I want to save a report as an pdf-document. Herefore I use following code:


try
{
    ReportProcessor reportProcessor = new ReportProcessor();
    RenderingResult result = reportProcessor.RenderReport("PDF", report, null);
 
    using (FileStream fs = new FileStream(fileName, FileMode.Create))
    {
        fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
    }
}
catch (Exception ex)
{
    return false;
}

This actually works on the working machine debugged with VS2010. But when I want to use this as published version on the server the following error occurs (on rendering the report):

MESSAGE:
ExtensionParameter Unit on extension type Telerik.Reporting.ExcelRendering.Excel97.ExcelReport, Telerik.Reporting, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be can not assign the specified value. -
 Stacktrace:    bei V10Portal.Core.ScheduledJobs.SendReportJob.saveReportOnHarddisk(Report report, String fileName) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 408.
   bei V10Portal.Core.ScheduledJobs.SendReportJob.logSaveReports(String& logErrorIn, String reportsPath, List`1 reportsToSend) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 701.
   bei V10Portal.Core.ScheduledJobs.SendReportJob.Run() in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 186.
 
STACKTRACE:
bei Telerik.Reporting.Interfaces.Attributes.ExtensionParameterAttribute.Apply(ExtensionInfo extInfo)
   bei Telerik.Reporting.Processing.ExtensionInfo.Create(Type extensionType, String extensionName)
   bei Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName)
   bei Telerik.Reporting.Processing.ExtensionManagerBase.Load(ExtensionInfoCollection extensions, IEnumerable`1 extensionTypeNames)
   bei Telerik.Reporting.Processing.ExtensionManagerBase..ctor(IEnumerable`1 extensionTypeNames, ReportingConfigurationSection section)
   bei Telerik.Reporting.Processing.ExtensionManager.get_Instance()
   bei Telerik.Reporting.Processing.ExtensionManager.ListExtensions(Type extensionType)
   bei Telerik.Reporting.Processing.ReportProcessor.GetRenderer(String name)
   bei Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   bei Telerik.Reporting.Processing.ReportProcessor.RenderReportStateless(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   bei Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo)
   bei V10Portal.Core.ScheduledJobs.SendReportJob.saveReportOnHarddisk(Report report, String fileName) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 404. -
 Stacktrace:    bei V10Portal.Core.ScheduledJobs.SendReportJob.saveReportOnHarddisk(Report report, String fileName) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 408.
   bei V10Portal.Core.ScheduledJobs.SendReportJob.logSaveReports(String& logErrorIn, String reportsPath, List`1 reportsToSend) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 702.
   bei V10Portal.Core.ScheduledJobs.SendReportJob.Run() in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 186.

May you have a solution or some hints for me what errors could have this exception in consequence?

Thanks.


Best regards

David
Marc
Top achievements
Rank 1
 answered on 08 Sep 2011
1 answer
137 views
Hello!

I have a telerik Report with various Date fields, 2 of them are the report parameters and the other is from my database.

I set the date format for my 2 textbox that shows the Selected date on the DateTimePicker to 01/01/2011
and to my date column i set a format like this: 01/01/2011 08:00 (with time)

My problem is, on development machine all works perfect, but when i deploy my application, the fields show the dates in a differente way,
all of them use this format 1/1/2011 (without the "0").

I tried everything untill now and had no success, my question is, there's something that i need to change to get this format on my date times in the server or something?

I attach a image taht shows the problem.

Thank you!
Steve
Telerik team
 answered on 08 Sep 2011
3 answers
110 views
when i use report in my project (winform) telerik report (Q1 2010 )will use dotnet 4.0 . i need to use only dotnet 2.0. how do i fix it.
thank you
Steve
Telerik team
 answered on 08 Sep 2011
4 answers
241 views
I recently upgraded to 2010 and am having issues with the new SQLDatasource. When I try to use a reportviewer in my web project, I get the error below. Previously in 2009 when I referenced the DLL, it brought across the data connections. With the new SQLDatasource, it does not seem to bring the conncetion string with it.

How do I seet the data connection in the 2010 version?


Unable to connect to database. Please verify that your connection string is valid; in case you use a connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application.

at Telerik.Reporting.Processing.Data.SqlQueryProvider.CreateConnection()
at Telerik.Reporting.Processing.Data.SqlDataEnumerable.SqlDataEnumerator.CreateReader()
at Telerik.Reporting.Processing.Data.SqlDataEnumerable.SqlDataEnumerator.MoveNext()
at Telerik.Reporting.Processing.Data.ResultSet.SeedData(IEnumerable`1 rawData)
at Telerik.Reporting.Processing.Data.ResultSet.Fill(IEnumerable`1 data)
at Telerik.Reporting.Processing.Data.SqlQueryProvider.Execute(MultidimensionalQuery query)
at Telerik.Reporting.Processing.ParametersManager`1.CalculateAvailableValues(T parameter, ReportParameterAvailableValues definition, Object& data)
at Telerik.Reporting.Processing.ParametersManager`1.Calculate(T parameter, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ParametersManager`1.GetParameters(IDictionary`2 parameterValues)
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Emmanuel
Top achievements
Rank 1
 answered on 07 Sep 2011
0 answers
197 views
My developers have a base report that is used as a class for all other reports. The base report has a datasource for some config information, which is used to populate a few text boxes. The textboxes were created in the designer, but the declarations were moved to the class. However, when a report uses this base as its parent, the textboxes show the message "An error has occurred while processing Textbox '[object name]'; the expression contains object [fieldname] that is not defined in the current context".

Data in the derived report is appearing properly, it's just the data in the parent report that is not appearing.

Any suggestions?
Derek
Top achievements
Rank 1
 asked on 07 Sep 2011
2 answers
178 views
Hello,

Testing on iOS 4.3.3 on an iPod, there are no scroll bars appearing for a report.

You can see this on the telerik demos at:

I've been told this is also an issue when viewing on iPhone 4 and iPad (original, we haven't tested iPad2)

Is this a known issue and if so are there any magic settings?

Thanks,
Dyana
Dyana
Top achievements
Rank 1
 answered on 07 Sep 2011
1 answer
323 views
Hi,

I am trying to evaluate the product and build a reporting solution using postgres DB.
In my case I need to build the report based on the result returned by a stored procedure(function in postgress) but I could not find any examples on postgress.
Can somebody help me and provide a sample or at least a link to some tutorials? 

While I was trying to integrate with postgres, I have found the following error(which was caused by a missing connection string parameter):
An error has occurred while processing Report 'Report2':
Exception has been thrown by the target of an invocation.
------------- InnerException -------------
ERROR: 42P01: relation "voa_keygen" does not exist Telerik.OpenAccess.RT.sql.SQLException: ERROR: 42P01: relation "voa_keygen" does not exist
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.StatementImp.executeQuery(String sql)
at OpenAccessRuntime.Relational.sql.HighLowRelationalKeyGenerator.IsCached(Connection con, RelationalKeyGeneratorInfoCache infoCache, String tab, String kCol, String vCol, String key, Boolean& ret)
at OpenAccessRuntime.Relational.sql.HighLowRelationalKeyGenerator.init(String className, RelationalTable theClassTable, Connection con, RelationalKeyGeneratorInfoCache relationalKeyGeneratorInfoCache)
at OpenAccessRuntime.Relational.RelationalStorageManagerFactory.init(Boolean full)
------------- InnerException -------------
ERROR: 42P01: relation "voa_keygen" does not exist

for everyone who had this issues with postgres, just specify, Protocol = 3 in Connection String and everything should work after.

Kind Regards,
Georgina.

Alexander
Telerik team
 answered on 07 Sep 2011
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?