Click here to Skip to main content
16,005,697 members
Home / Discussions / C#
   

C#

 
QuestionSeralize a class with static Variables Pin
Bhimuni13-Dec-07 20:43
Bhimuni13-Dec-07 20:43 
AnswerRe: Seralize a class with static Variables Pin
Guffa13-Dec-07 21:01
Guffa13-Dec-07 21:01 
QuestionRe: Seralize a class with static Variables Pin
Bhimuni14-Dec-07 22:21
Bhimuni14-Dec-07 22:21 
AnswerRe: Seralize a class with static Variables Pin
Guffa15-Dec-07 8:13
Guffa15-Dec-07 8:13 
GeneralRe: Seralize a class with static Variables Pin
Bhimuni17-Dec-07 21:31
Bhimuni17-Dec-07 21:31 
Generalstoring double array in XML using C# Pin
ceken13-Dec-07 20:06
ceken13-Dec-07 20:06 
GeneralRe: storing double array in XML using C# Pin
Christian Graus13-Dec-07 21:50
protectorChristian Graus13-Dec-07 21:50 
Questionusing html code making a report in c# Pin
infi_200713-Dec-07 19:54
infi_200713-Dec-07 19:54 
hi, using of this code,i make one doc file ,i want to show this file as report,so i want to grouping ,summetion & all things which is required for a Report,so give me code i.e.helpful to show this doc file as a report
 protected void Button1_Click(object sender, EventArgs e)
    {
DataSet dsDlist = new DataSet();
        string sql;
        string HeaderName;
        string data;
        sql = "SELECT  dbo.aa.*FROM dbo.aa";
        A.ClassGeneral a1 = new A.ClassGeneral();
        dsDlist = A.ClassGeneral.GetList(sql);
        StringBuilder htmlString = new StringBuilder();
        
        htmlString.Append(" <table width="\"100%\"height=\"50%\"" border="\"0\"">");
        
        htmlString.Append("<tr width="\"100%\"">");
       // htmlString.Append("<tr>");
        htmlString.Append("<img src="C:\\NewReport\\images\\Logo.gif">");
        htmlString.Append("<th>RoadRunner Shuttle</th>");
        
        htmlString.Append("</img></tr>");
        //htmlString.Append("<td rowspan="\"0\"">");
        htmlString.Append("<th>Employee id</th>");
        htmlString.Append("<th>Salary</th>");
        //htmlString.Append("</td>");
        htmlString.Append("</tr>");
        for (int i = 0; i <= dsDlist.Tables[0].Rows.Count - 1; i++)
        {
                      htmlString.Append("<tr>");
            htmlString.Append("<td>");
            data = dsDlist.Tables[0].Rows[i] ["empid"].ToString();
            htmlString.Append(data);
              htmlString.Append("</td>");
           htmlString.Append("<td>");
            HeaderName = dsDlist.Tables[0].Rows[i]["sal"].ToString();
            htmlString.Append(HeaderName);
            htmlString.Append("</td>");
            htmlString.Append("</tr>");
}
 HttpContext.Current.Response.Clear();
            HttpContext.Current.Response.Charset = "";
            HttpContext.Current.Response.ContentType = "application/msword";
            
            HttpContext.Current.Response.AddHeader("anant kasture", "1");
            HttpContext.Current.Response.Write(htmlString);
            HttpContext.Current.Response.End();
            HttpContext.Current.Response.Flush();
        }
thanks</table>

asp.net using c#

GeneralRe: using html code making a report in c# Pin
Paul Conrad15-Dec-07 9:05
professionalPaul Conrad15-Dec-07 9:05 
Generaldata manager class Pin
chithra.r13-Dec-07 19:30
chithra.r13-Dec-07 19:30 
GeneralRe: data manager class Pin
N a v a n e e t h13-Dec-07 19:34
N a v a n e e t h13-Dec-07 19:34 
GeneralRe: data manager class Pin
Sun Rays13-Dec-07 19:41
Sun Rays13-Dec-07 19:41 
GeneralRe: data manager class Pin
Dave Kreskowiak14-Dec-07 4:12
mveDave Kreskowiak14-Dec-07 4:12 
QuestionHow to create a desktop application for demo purpose Pin
Pradeep Kumar Srivastava13-Dec-07 18:39
Pradeep Kumar Srivastava13-Dec-07 18:39 
GeneralRe: How to create a desktop application for demo purpose Pin
Sun Rays13-Dec-07 19:01
Sun Rays13-Dec-07 19:01 
QuestionRe: How to create a desktop application for demo purpose Pin
Pradeep Kumar Srivastava13-Dec-07 19:22
Pradeep Kumar Srivastava13-Dec-07 19:22 
GeneralRe: How to create a desktop application for demo purpose Pin
Sun Rays13-Dec-07 19:26
Sun Rays13-Dec-07 19:26 
GeneralRe: How to create a desktop application for demo purpose Pin
Nouman Bhatti13-Dec-07 19:50
Nouman Bhatti13-Dec-07 19:50 
QuestionRe: How to create a desktop application for demo purpose Pin
Pradeep Kumar Srivastava13-Dec-07 20:15
Pradeep Kumar Srivastava13-Dec-07 20:15 
GeneralRe: How to create a desktop application for demo purpose Pin
Ujjaval Modi13-Dec-07 21:49
Ujjaval Modi13-Dec-07 21:49 
GeneralRe: How to create a desktop application for demo purpose Pin
Christian Graus13-Dec-07 21:52
protectorChristian Graus13-Dec-07 21:52 
QuestionC# Pin
lalitkr13-Dec-07 18:18
lalitkr13-Dec-07 18:18 
GeneralRe: C# Pin
Vasudevan Deepak Kumar13-Dec-07 21:31
Vasudevan Deepak Kumar13-Dec-07 21:31 
GeneralRe: C# Pin
Pete O'Hanlon13-Dec-07 22:31
mvePete O'Hanlon13-Dec-07 22:31 
GeneralRe: C# Pin
Paul Conrad23-Dec-07 9:50
professionalPaul Conrad23-Dec-07 9:50 

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.