Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

pssuresh

@pssuresh
About
Posts
21
Topics
19
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Edit PDF files in Browser in asp.net
    P pssuresh

    Hi All, We are developing a intranet web application in asp.net where we need to provide users to edit the pdf files. In order to edit pdf files does we need to have adobe acrobat professional only on the server or we need to have it on every client machine. Can we get any free better pdf editor other than adobe acrobat professional.If anyone already used any better pdf editor please let me know...Thanks for your help

    ASP.NET csharp asp-net adobe sysadmin help

  • .Net Remoting Debugging
    P pssuresh

    Even though i searched in google,i could n't get good link for .net remoting debugging. I have a windows application and my .Net remoting component is hosted in IIS. If any of you has good link for .net remoting debugging, could you please send me. Thanks, Suresh.P.S

    C# csharp windows-admin

  • Exporting DataGrid to Excel
    P pssuresh

    Hi, use this link.i made my code from this link. http://support.microsoft.com/kb/306023/EN-US/ and the following is my code This is the windows application.when i truncate the data, it saves successfully, but when i increase the limit , then it throws the error. // Start a new workbook in Excel. excel = new Excel.Application(); books = (Excel.Workbooks)excel.Workbooks; book = (Excel._Workbook)(books.Add(optionalValue)); sheets = (Excel.Sheets)book.Worksheets; sheet = (Excel._Worksheet)(sheets.get_Item(1)); System.Data.DataView customizeGridView=(System.Data.DataView)CustomizeExportDataGrid.DataSource; // Create an array for the headers and add it to cells A1:C1. object[] headers=new object[customizeGridView.Table.Columns.Count]; //Read the column names from the view and add it as a column headers to excel sheet. if(customizeGridView!=null) { for(int i=0;i < customizeGridView.Table.Columns.Count;i++) { headers[i]=customizeGridView.Table.Columns[i].ColumnName; } } range = sheet.get_Range("A1", optionalValue); if(customizeGridView.Table.Columns.Count > 0) range = range.get_Resize(1,customizeGridView.Table.Columns.Count); range.Value = headers; range.EntireColumn.AutoFit(); font = range.Font; font.Bold=true; if(customizeGridView!=null) { // Create an array with 3 columns and 100 rowxs and add it to // the worksheet starting at cell A2. int rowcount=customizeGridView.Table.Rows.Count; int ColumnCount=customizeGridView.Table.Columns.Count; object[,] data = new Object[rowcount,ColumnCount]; int rowLoop=0; int ColumnLoop=0; //First the object values are copied and they are saved in to excel as a stretch to increase performance. for(rowLoop=0;rowLoop <= rowcount-1;rowLoop++) { for(ColumnLoop=0;ColumnLoop <= ColumnCount-1;ColumnLoop++) { if(CustomizeExportDataGrid[rowLoop,ColumnLoop]==System.DBNull.Value) data[rowLoop,ColumnLoop]=string.Empty; else { data[rowLoop,ColumnLoop] = CustomizeExportDataGrid[rowLoop,ColumnLoop]; } } } range = sheet.get_Range("A2", optionalValue); range = range.get_Resize(rowcount,ColumnCount); range.Value = data; excel.DisplayAlerts=false; book.SaveAs(filename, optionalValue, optionalValue, optionalValue, optionalValue, optionalValue, Excel.XlSaveAsAccessMode.xlNoChange, optionalValue, optionalValue, optionalValue, optionalValue); Thanks, Suresh.P.S -- modified at 10:08 Thursday 8th February, 2007

    C# help com data-structures testing debugging

  • Exporting DataGrid to Excel
    P pssuresh

    Hi, I am not editing the datagrid. I am trying to export to excel.I am very sure, it is because of the no of characters presented in a cell. The exception is COM Exception "Exception from HRESULT: 0x800A03EC." Suresh.P.S

    C# help com data-structures testing debugging

  • Exporting DataGrid to Excel
    P pssuresh

    Hello Friends, I use this link to export datagrid values to excel sheet. http://support.microsoft.com/kb/306023/EN-US/ and iam following this topic Use Automation to Transfer an Array of Data to a Range on a Worksheet The problem is , if the no of characters are more in the datagrid cell and if i make transfer to the excel sheet, then it throws error.When i debug , i found out if the characters in a datagrid cell exceed 910, then it throws error. If any of you, have faced a problem like this before,please share your thoughts. Suresh.P.S

    C# help com data-structures testing debugging

  • Delegate
    P pssuresh

    public delegate int TestDelegate(int c,int d); A delegate can reference a method only if the signature of the method exactly matches the signature specified by the delegate type. Mainly a delegate needs a signature.i.e..return type and input parameter datatype. Why i need to say the variable name with the datatype "int C & int D". Is MS is using this "int c & int D" internally. Suresh.P.S

    C#

  • Typed DataSets
    P pssuresh

    Could any of you explain when i should exactly use typed Dataset. I know how to use it, but i have not implemented in my project. When i should go for typed dataset.Thanks for your precious time.

    ASP.NET tutorial

  • Exporting DataGrid to Excel
    P pssuresh

    I am searching for the code to export the datagrid columns in to the excel sheet. Most of the code i have seen are reading the each value one by one from the datagrid or dataset and writing in to excel sheet. But in Asp.net, there is an easy way to do it. Is there is any easy way to do in windows application also. Thanks to all.

    C# csharp asp-net algorithms

  • Error when trying to open the solution in asp.net
    P pssuresh

    Hi all, I extract the project from VSS named "PDFConverterService" in to folder "c:\data\VSS\PDFConverterService".i created a virtual directory in IIS named "PDFConverterService" and the directory path is pointing to "c:\data\vss\PDFConverterService". When i try to open the solution from "c:\data\vss\PDFConverterService" it shows the error message as below. Select the location for the working copy of your web projects.You can either accept the default location or change it by clicking in the cell and editing it. The visual studio solution will be located at c:\data\VSS\PDFConverterService as specified in the previous dialog box. Project Name : PDFConverterService SourceControlServerLocation:$/ Enter Working Copy Location Here : http://localhost/PDFConverterService\_1 Thanks for your help, Suresh.P.S

    ASP.NET csharp help asp-net visual-studio windows-admin

  • DataReader or Dataset
    P pssuresh

    I have 10 comboboxes and 10 textboxes in my aspx page.Each combobox has to be filled with 50 values.so if we calculate total records it comes around 510.Most of the articles says that datareader is faster than dataset.But since i have more controls and more values, it has to go to database again and again to fetch values. I can use stored procedure and fill the dataset at once, so that i can avoid the roundtrip. Guys can you tell me which one is better in this situation dataset or datareader and if possible the reason. Thanks

    ASP.NET database

  • Regular Expression
    P pssuresh

    Thanks to reply for the previous question.I need regular expression for the following questions. 1.I need to accept e-mail address for user name.Which can accepts letter,numbers,".","@". How to do regular expression for this... 2.I need to accept only letters, numbers.i tried this one. ^([0-9]*[a-z]*[A-Z]*)$, but it is giving error in some case.one of the example is "dfdfdfdf1234", it generates error on entering this value. Suresh.P.S

    Web Development tutorial regex help question

  • Regular Expression
    P pssuresh

    This code always display errormessage "Must be numeric", even though i enter only numbers.Can anyone please reply for this. -- modified at 11:45 Friday 5th May, 2006

    ASP.NET regex

  • Asp.net Code
    P pssuresh

    Hi, When i run my aspx page,it simply sends the asp.net code to the browser and i can only see the asp.net code in the browser and browser is not rendering the code..pl reply..thanks.

    ASP.NET csharp asp-net

  • Excel Macro from C#
    P pssuresh

    Hi all, I am calling excel macro function which is available in excel template file. I get the reference of the work sheet, and iam trying to calling a macro from C#.The code is as below. System.Diagnostics.Process[] myProcesses; Excel.ApplicationClass appInstanceReference; myProcesses = System.Diagnostics.Process.GetProcessesByName("EXCEL"); if ( myProcesses.Length > 0 ) { Excel.Workbook xlwkbook = (Excel.Workbook) System.Runtime.InteropServices.Marshal.BindToMoniker(System.Windows.Forms.Application.StartupPath + @"\Templates\CommercialSizing.XLT"); if ( xlwkbook != null ) { appInstanceReference = (Excel.ApplicationClass) xlwkbook.Application; if ( appInstanceReference != null) { appInstanceReference.GetType().InvokeMember("Run", System.Reflection.BindingFlags.Default | System.Reflection.BindingFlags.InvokeMethod, null, appInstanceReference,new object[] {"'" + System.Windows.Forms.Application.StartupPath + @"\Templates\CommercialSizing.XLT" + "'!YourMacro"} ); } } } The problem is, it is not just calling macro function, instead of that, it is opening new excel template and it is calling macro function, but the excel sheet is already opened, i just need to execute my macro.what is the change i need to do in my code.Thanks for your help.

    C# help csharp wpf question

  • Difference between FOR and UPDATE
    P pssuresh

    hi friends, Is there is any major core difference between FOR and UPDATE trigger, or just the name change due to versions SQL 7 & SQL 2000.Plese reply.

    Database database asp-net announcement

  • Dynamic Event Handler
    P pssuresh

    Menu Item names are directly coming from the database and i want to attach menu item with the event handler names. so i name event handler as "handle" + item.name(value from database) + "click".I want to attach it dynamically. the code is as follows //sample code public class myclass { protected void Handle_FileMenuItem_Click(System.Object sender, System.EventArgs e) { } public bindeventhandler() { string dynamiceventhandler=""; dynamiceventhandler="Handle_" + item.Name + "_Click"; Delegate temp=Delegate.CreateDelegate(typeof(EventHandler),this,dynamiceventhandler); item.Click+=(EventHandler)temp; } } The code is throwing error. Error binding to target method. Can anyone pl explain how to solve this error... i got the idea from this url http://www.dotnet247.com/247reference/msgs/21/106638.aspx

    C# database wpf wcf com help

  • Eventhandler
    P pssuresh

    How to write common event handler which can accept range through EventArgs.Is it possible to write my own Eventargs derive from System.EventArgs, so that i can pass arguments when event handlers get called. Please tell me how to acheive this. I have two textboxes called textbox1 and textbox2 each accept integer values with different range textbox1 accept values between 1800-2200 textbox2 accept values between 2400-2800 i have onenter event handler for both the textboxes like this //delegate and event handler for first text box this.YearBuiltTextBox.Enter += new EventHandler(Parse_TextBox1); public void Parse_TextBox1(System.Object sender, System.EventArgs e) { try { if (this.YearBuiltTextBox.Enabled == false) return; object parseValue = DataFormatter.ParseInteger(this.YearBuiltTextBox.Text,1800, 2200); } } //delegate and event handler for second text box this.YearRenovateTextBox.Enter += new EventHandler(Parse_TextBox2); public void Parse_TextBox2(System.Object sender, System.EventArgs e) { try { if (this.YearRenovateTextBox.Enabled == false) return; object parseValue = DataFormatter.ParseInteger(this.YearBuiltTextBox.Text,2400, 2800); } } How to write common event handler for this...

    C# tutorial

  • Cache in Web farms
    P pssuresh

    How to maintain cache in webfarms like session(outproc).if it is possible how we configure in web.config file.

    ASP.NET tutorial

  • dll version
    P pssuresh

    My client exe refering a assembly dll version 1.o which is in GAC. As i found some bug in dll version 1.0, i corrected it and make it version 2.0.Now i want my client exe to refer 2.0 without compiling the client exe again.How to do this.

    .NET (Core and Framework) dotnet help tutorial announcement

  • Column header in datagrid
    P pssuresh

    my column header name in datagrid is "columndescription". i want to display in datagrid like column description my pseudo code is below.

    ASP.NET
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups