Click here to Skip to main content
15,900,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I am using .rdlc report. I have to generate pdf with dynamic names from my report.
For this i am using
DataView dv =(DataView) ObjectDataSource2.Select();
        String st = "";
        DataTable tb = dv.Table;
        if (tb.Rows.Count > 0)
        {
//assigning QUOTATION_NUMBER from table to st
            st = tb.Rows[0]["QUOTATION_NUMBER"].ToString();
            
        }
        
        ReportViewer1.LocalReport.DisplayName = st;

Now problem is that if My QUOTATION_NUMBER is IMP-20110620-7, it is showing IMP%2D20110620%2D7 .
(i.e. replace '-' with '%2D' )
Whaen i check display name while executing it show IMP-20110620-7, but showing IMP%2D20110620%2D7 on pdf.

Can anyone please suggest me how to do this.

Thanks in advance.
Posted
Updated 15-Nov-11 20:06pm
v2
Comments
Sergey Alexandrovich Kryukov 16-Nov-11 4:30am    
This is URL-encoded string. Does it provide you a clue? (I don't know how to do it right.)
--SA
Sharma Richa 17-Dec-11 4:49am    
Thanks for your answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900