running sub report from an exported pdf getting parameters from main report

Hi All,

I am exporting a pdf from a main report. From pdf, I have to run a sub report with the same parameters as that of the main report.

What javascript code can i use to run a report from a pdf with parameters from the main report.

For Ex:

If i am running a sales report for region, the sub report will run sales sales report for a sub region in the same region.

Please help me.

July 23rd, 2015 11:06pm

Hi ganagrocks,

Instead of reading parameters from the pdf which will force to use some third party dlls like itextsharp.dll and SharpZiplib. I would recomend you to export the report in xml and reading the parameter value from a text box which you can hide in your main report and it will be damn easy. the xml file will look something like the below image where I have passed paramOne and paramTwo and I read the value of the paramters from the two nodes.

<?xml version="1.0" encoding="UTF-8"?>

-<Report xmlns="Report1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" paramTwo="True" paramOne="BookTitle1,BookTitle1,BookTitle1,BookTitle1,BookTitle1,BookTitle2,BookTitle2,BookTitle2,BookTitle2,BookTitle2,BookTitle3,BookTitle3,BookTitle3,BookTitle3,BookTitle3,BookTitle4,BookTitle4,BookTitle4,BookTitle4,BookTitle4,BookTitle5,BookTitle5,BookTitle5,BookTitle5,BookTitle5" Name="Report1" xsi:schemaLocation="Report1 http://reportserver?%2FReport1&rs%3AFormat=XML&rc%3ASchema=True">


-<Tablix1>


-<Details_Collection>

<Details c2="BookGenre1" c1="BookTitle1"/>

<Details c2="BookGenre1" c1="BookTitle1"/>

<Details c2="BookGenre1" c1="BookTitle1"/>

<Details c2="BookGenre1" c1="BookTitle1"/>

<Details c2="BookGenre1" c1="BookTitle1"/>

<Details c2="BookGenre2" c1="BookTitle2"/>

<Details c2="BookGenre2" c1="BookTitle2"/>

<Details c2="BookGenre2" c1="BookTitle2"/>

<Details c2="BookGenre2" c1="BookTitle2"/>

<Details c2="BookGenre2" c1="BookTitle2"/>

<Details c2="BookGenre3" c1="BookTitle3"/>

<Details c2="BookGenre3" c1="BookTitle3"/>

<Details c2="BookGenre3" c1="BookTitle3"/>

<Details c2="BookGenre3" c1="BookTitle3"/>

<Details c2="BookGenre3" c1="BookTitle3"/>

<Details c2="BookGenre4" c1="BookTitle4"/>

<Details c2="BookGenre4" c1="BookTitle4"/>

<Details c2="BookGenre4" c1="BookTitle4"/>

<Details c2="BookGenre4" c1="BookTitle4"/>

<Details c2="BookGenre4" c1="BookTitle4"/>

<Details c2="BookGenre5" c1="BookTitle5"/>

<Details c2="BookGenre5" c1="BookTitle5"/>

<Details c2="BookGenre5" c1="BookTitle5"/>

<Details c2="BookGenre5" c1="BookTitle5"/>

<Details c2="BookGenre5" c1="BookTitle5"/>

</Details_Collection>

</Tablix1>

</Report>

Free Windows Admin Tool Kit Click here and download it now
July 24th, 2015 12:53am

Hi Milan, 

Thanks for your reply. But my client is specific about pdf and running report from that pdf.

Can we completly do the requested functionality using SharpZiplib and itextSharp.dll. Please let me know.

Also let me know the cost of these dlls?

July 26th, 2015 3:44pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics