Click here to Skip to main content
15,887,083 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionasp.net 2010 single row control Pin
classy_dog3-Nov-11 11:45
classy_dog3-Nov-11 11:45 
AnswerRe: asp.net 2010 single row control Pin
Rocky#4-Nov-11 0:52
Rocky#4-Nov-11 0:52 
QuestionDebugging Pin
indian1433-Nov-11 11:08
indian1433-Nov-11 11:08 
QuestionQuering Active directory Pin
byka3-Nov-11 8:09
byka3-Nov-11 8:09 
AnswerRe: Quering Active directory Pin
Richard MacCutchan3-Nov-11 23:40
mveRichard MacCutchan3-Nov-11 23:40 
GeneralRe: Quering Active directory Pin
byka8-Nov-11 3:39
byka8-Nov-11 3:39 
GeneralRe: Quering Active directory Pin
Richard MacCutchan8-Nov-11 5:43
mveRichard MacCutchan8-Nov-11 5:43 
QuestionHow to export rdlc report to PDF without using ReportViewer Pin
uspatel3-Nov-11 4:52
professionaluspatel3-Nov-11 4:52 
is it possible to export report directly into pdf file?
C#
try
       {
           stmtDataSetTableAdapters.IOB_StmtTableAdapter ds = new stmtDataSetTableAdapters.IOB_StmtTableAdapter();
           // Create Report DataSource
           ReportDataSource rds = new ReportDataSource("IOB_Stmt");

           // Variables
           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.Remote;
           viewer.LocalReport.ReportPath = "~/Report.rdlc";
           viewer.LocalReport.DataSources.Add(rds); // Add datasource here

           byte[] bytes = viewer.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);//Error Occured

           // 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=" + fileName + "." + extension);
           Response.BinaryWrite(bytes); // create the file
           Response.Flush(); // send it to the client to download
       }
       catch (Exception ex)
       {
           Response.Write(ex.ToString());
       }

error on bold line

An error occurred during local report processing.

Please give the solution.
thanks

modified 3-Nov-11 11:11am.

AnswerRe: How to export rdlc report to PDF without using ReportViewer Pin
purnananda behera7-Nov-11 19:05
purnananda behera7-Nov-11 19:05 
Questionopen excel in specific spredsheet Pin
polycom1233-Nov-11 3:24
polycom1233-Nov-11 3:24 
AnswerRe: open excel in specific spredsheet Pin
Dalek Dave6-Nov-11 6:43
professionalDalek Dave6-Nov-11 6:43 
GeneralRe: open excel in specific spredsheet Pin
polycom1236-Nov-11 20:47
polycom1236-Nov-11 20:47 
Questiondynamic generation of template field in grid view Pin
vidya.ms3-Nov-11 1:49
vidya.ms3-Nov-11 1:49 
QuestionDevelopment Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Palavesam Pattan2-Nov-11 20:43
professionalPalavesam Pattan2-Nov-11 20:43 
AnswerRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Richard MacCutchan2-Nov-11 21:53
mveRichard MacCutchan2-Nov-11 21:53 
GeneralRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Palavesam Pattan2-Nov-11 23:19
professionalPalavesam Pattan2-Nov-11 23:19 
GeneralRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Richard MacCutchan2-Nov-11 23:40
mveRichard MacCutchan2-Nov-11 23:40 
GeneralRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Palavesam Pattan3-Nov-11 0:05
professionalPalavesam Pattan3-Nov-11 0:05 
GeneralRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Richard MacCutchan3-Nov-11 0:23
mveRichard MacCutchan3-Nov-11 0:23 
GeneralRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Palavesam Pattan14-Nov-11 17:59
professionalPalavesam Pattan14-Nov-11 17:59 
GeneralRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Richard MacCutchan14-Nov-11 21:16
mveRichard MacCutchan14-Nov-11 21:16 
GeneralRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Palavesam Pattan15-Nov-11 1:33
professionalPalavesam Pattan15-Nov-11 1:33 
GeneralRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Richard MacCutchan15-Nov-11 4:51
mveRichard MacCutchan15-Nov-11 4:51 
QuestionRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Palavesam Pattan15-Nov-11 17:55
professionalPalavesam Pattan15-Nov-11 17:55 
AnswerRe: Development Issue : BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Pin
Richard MacCutchan15-Nov-11 21:38
mveRichard MacCutchan15-Nov-11 21:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.