16,018,938 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Pratika05 (Top 29 by date)
Pratika05
22-Nov-12 7:23am
View
hey i solved this by puutin script at bottom of page after body tag now i aslso want to pass some parameters to handler and show result returned by handler pls help me
Pratika05
17-Oct-12 3:22am
View
ryanb31 we are geting pdf of reports formated differently on different server we have same version of sql server,acrobat reader but still geting problem..
Pratika05
22-Sep-12 1:11am
View
I think merging the documents together is time consuming so i want to render all bytes in single pdf but if its not possible than can u suggest me a suitable way to merge documents(pdfs)
Pratika05
21-Sep-12 22:36pm
View
There is a function Global.TotalPages but it can only be used in header or footer but i want total no of pages in textbox in report body not on header or footer
Pratika05
17-Sep-12 8:01am
View
we cant use buit in function of page number withot header or footer
Pratika05
5-Sep-12 8:32am
View
is my solution right
Pratika05
5-Sep-12 8:09am
View
it shows error
Pratika05
5-Sep-12 7:57am
View
i have tried
ValidationExpression="^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((1[6-9]|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((1[6-9]|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((1[6-9]|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$"
for validating date but i also want to validate age in same expression
Pratika05
5-Sep-12 7:34am
View
thanks it helps
Pratika05
28-Aug-12 7:19am
View
i have started it but not included that line here but again exception is not printed in label
Pratika05
6-Aug-12 6:41am
View
using javascript
Pratika05
6-Aug-12 6:40am
View
at design page
Pratika05
29-Jun-12 8:12am
View
thks it workss
Pratika05
29-Jun-12 7:42am
View
pls expalin it more
Pratika05
29-Jun-12 7:38am
View
incorrect syntax
Pratika05
29-Jun-12 7:05am
View
select
(IsNull(House_Name_No,'') +','+IsNull(City,'')+','+IsNull(State,'')
from emptable
this is my query if a record has no values for these i got ,,, but i want a space not ,,,
Pratika05
29-Jun-12 7:00am
View
thanks yupiii i got it
Pratika05
29-Jun-12 6:52am
View
if all fields are blank i need a space or nothng but not this ,,,
Pratika05
29-Jun-12 6:37am
View
no this does not solve my problem i am getting ,,, if fields are blank
Pratika05
29-Jun-12 6:36am
View
no i want comma in between each part house no,city,state
Pratika05
22-Jun-12 1:08am
View
At line viewer.LocalReport.SetParameters(Param); it gives error if i rempve it everything works fine.
Pratika05
22-Jun-12 1:07am
View
My code is:
private void CreatePDF(string id, string pid)
{
string issalaried = "";
DataSet DsRep = getemplyeebasicdetail(id, pid);
DataSet dssalaryDetails = getemplyeesalarydetail(id, pid);
DataSet dsEmployeeCount = GetEmplyoeeCount(id, pid);
int rowcount = dssalaryDetails.Tables[0].Rows.Count;
if (rowcount == 0)
{
DataRow dr = dssalaryDetails.Tables[0].NewRow();
dssalaryDetails.Tables[0].Rows.Add(dr);
}
else
{
Boolean salaried = false;
foreach (DataRow dr in dssalaryDetails.Tables[0].Rows)
{
if (dr["issalaried"].ToString() == "Y")
{
salaried = true;
}
}
if (salaried == false)
{
issalaried = "N";
}
else
{
issalaried = "Y";
}
}
ReportDataSource datasource = new ReportDataSource("DS1", DsRep.Tables[0]);
ReportDataSource datasourcefamily = new ReportDataSource("DS2", dssalaryDetails.Tables[0]);
ReportDataSource datasourcecount = new ReportDataSource("DS3", dsEmployeeCount.Tables[0]);
ReportParameter[] Param = new ReportParameter[1];
Param[0] = new ReportParameter("Param_IsSalaried", issalaried);
Warning[] warnings;
string[] streamIds;
string mimeType = string.Empty;
string encoding = string.Empty;
string extension = string.Empty;
// Setup the report viewer object and get the array of bytes
ReportViewer viewer = new ReportViewer();
viewer.ProcessingMode = ProcessingMode.Local;
viewer.LocalReport.ReportPath = Server.MapPath("~\\Employee.rdlc");
//Datasource
viewer.LocalReport.DataSources.Add(datasource);
viewer.LocalReport.SetParameters(Param);
viewer.LocalReport.EnableExternalImages = true;
byte[] bytes = viewer.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);
// Now that you have all the bytes representing the PDF report, buffer it and send it to the client.
Response.Buffer = true;
Response.Clear();
Response.ContentType = mimeType;
Response.AddHeader("content-disposition", "attachment; filename=" + "Employee" + "." + extension);
Response.BinaryWrite(bytes); // create the file
Response.Flush(); // send it to the client to download
//Page settings for PDF File.
}
Pratika05
8-Jun-12 7:15am
View
thanks....good code
Pratika05
31-May-12 5:38am
View
SELECT * FROM Table1
But My table has only 5 records but I want to show 10 out of which 5 rows are blank
Pratika05
31-May-12 2:01am
View
Select * from tblemp
it returns 5 rows as there are 5 records in table but i want to show 10 blank rows also in rdlc reports
Pratika05
29-May-12 8:14am
View
thanx i got but does this way ever give me error oor wrong output
Pratika05
29-May-12 7:55am
View
But I need result in tabular Format Like I have query Select count(*)as greater12 from tbl_emp where age>12 Select count(*)as less12 from tbl_emp where age<12 Now I want this Type of result greater12 less12 34 2
Pratika05
29-May-12 7:54am
View
You can use menu control
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" CssClass="menu">
and bind it dynamicaly
Pratika05
29-May-12 7:48am
View
But I need result in tabular Format Like I have query
Select count(*)as greater12 from tbl_emp where age>12
Select count(*)as less12 from tbl_emp where age<12
Now I want this Type of result
greater12 less12
34 2
Show More