Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Sir Plz Plz Plz Help I m in trouble.....
Sir I want crystal report to be saved in pdf format in vb.net 2008 and my back end is sql server 2005.
I got the solution for how to save reports in pdf format but its actually all the records are saved in one pdf file.
I dont want that kind...I want Each record of the project to b saved in each pdf file, like the current report in front of me of bill no. 1.This only bill no. 1 has to save in pdf file no one else. For othe bill nos. like 2, 3, 4, ...etc. have to be saved in each pdf files.
And while saving on button click it should ask me where to save.
Plz Plz Plz Help.......
Hope u will solve my problem......
Thank You.
Posted
Updated 18-Jun-11 7:48am
v2

1 solution

OP wrote:
Sir Plz Plz Plz Help I m in trouble.....

:Doh: :confused:
OP wrote:
I want Each record of the project to b saved in each pdf file, like the current report in front of me of bill no. 1.This only bill no. 1 has to save in pdf file no one else. For othe bill nos. like 2, 3, 4, ...etc. have to be saved in each pdf files.

It's very simple. Apply the selection formula while viewing the report.
For example:
crystalReportViewer1.SelectionFormula = "{Table.billno}=1"

Here this will open the report with BillNo.1. So change the billno value here dynamically in your codebehind, that's all.

Further reading
Creating a Report with a Selection Formula[^]
VB.NET Crystal Reports Integer parameter[^]
 
Share this 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