For reasons of hiding customer details from other customers, I've elected to create some custom reports for my application using the standalone report designer. The idea is that I can create any number of customized reports and drop them into place on each customer's machine as appropriate.
I initially used .TRDP format, and it works fine; however, when branching a codeline with SVN, I realized I couldn't merge binary files very well, so I decided to go with .TRDX format for the ability to diff & merge report definitions.
In turn I created a bit of stand-alone code to run in my build environment that would convert all the TRDX files to TRDP for distribution.
This uses the same method shown on the Telerik Reporting documentation; that is:
using (var targetStream = File.Create(destfn)) {
var xmlString = File.ReadAllText(sourceName);
reportPackager.Package(xmlString, targetStream);
}
However, when I do this, and try to load the resulting TRDP in either stand-alone Report Designer or load into my ASP.NET code, I get errors saying "Resource Not Found".
My reports typically have a customer-specific PictureBox, so there's an embedded resource block, which I believe is the issue.
I tried converting my original TRDP and "packaged" TRDP file names to .zip so I could inspect them. The original TRDP has two XML files and a folder Images with a JPG file - "pictureBox1.Value.JPG". The packaged TRDP just has two XML files, and there's a very long BASE64-like block, no separate image files.
How can I achieve this goal in an automated fashion?