This is a migrated thread and some comments may be shown as answers.

Version Error

4 Answers 1522 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 17 Nov 2016, 06:12 PM

Hi Everyone

I recently registered for the free trail, wanting to use the product for report automation. After creating the template in the standalone report designer, I want to export grammatically. However i get following error on the unpack method:

Cannot read a document with the specified schema: http://schemas.telerik.com/reporting/2012/4.1.
You might be using an older version of the product.

Not sure where to go from here.

using (var sourceStream = System.IO.File.OpenRead(Server.MapPath(Url.Content("~/Forms/DebitForm.trdp"))))
{
 var report = reportPackager.Unpackage(sourceStream);
}

4 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 18 Nov 2016, 06:03 PM
Hello Paul,

The Report Designer of R3 2015 and newer versions of Telerik Reporting produce files with schema 4.1. The application where the report is unpackaged and exported programmatically must be upgraded to use such version in order to read the file.

For more details, check Upgrading Telerik Reporting Projects

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Paul
Top achievements
Rank 1
answered on 18 Nov 2016, 07:34 PM

I understand, how ever in this case i believe I have the updated dll reference in my project, this was a fresh install from the control panel. See screenshot below.

http://imgur.com/a/gBj0l

Should I re download?

0
Accepted
Stef
Telerik team
answered on 18 Nov 2016, 07:59 PM
Hi,

Test running the Upgrade Wizard or manually upgrade the project - Upgrading Telerik Reporting Projects. Then select all Telerik Reporting references and set CopyLocal to true.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Paul
Top achievements
Rank 1
answered on 18 Nov 2016, 08:00 PM
Did the trick, thanks alot!
Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Stef
Telerik team
Paul
Top achievements
Rank 1
Share this question
or