Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This used to work
Message
From
06/07/2015 10:11:30
 
General information
Forum:
ASP.NET
Category:
Reporting
Environment versions
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01621780
Message ID:
01621789
Views:
72
Good to hear it's working

>Hi Craig, and thanks for your efforts, my code snippet didn't show it but I actually set the criteria and refresh the report before I do the export and out of desperation I commented the code out and tried the export again and it worked ! the code you haven't seen is below
>
>
>string selectionformula = string.Format("{0}view_clientinvoices.invoiceid{1} = {2}", "{", "}", InvoiceID);
>crystaldoc.RecordSelectionFormula = selectionformula;
>crystaldoc.Refresh();
>
>
>which basically creates a string "{view_clientinvoices.invoiceid} = 1"
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform