I a method that generates a PDF and the method returns a byte value, but after response.end statement, the shows an error that the "File does not begin with '%PDF-' here is the code: [CODE] private static Byte[] GenerateReports(string templateFilePath, DataTable table, string fileName) { Byte[] Output = null; string … |
|
I was wondering if it is possible to assign 2 variables to DataView.RowFilter. if it is, how do I code it. I have tried this: [CODE]dataView.RowFilter = FilterExpression + " and " + ARRAFilterExpression; [/CODE] FilterExpression and ARRAFilterExpression are both string variables with string values stored in them. Thanks |
|
Hi, I have a asp.net form that uses form authentication. I want to now implement a role base security buy don't how. Please could someone help me with a sample code on how to do this . Thanks. |
|
I am trying to switch between to form in different project currently I am going this: [CODE] this.Hide(); form2 f= new form2(); f.Show();[/CODE] the new instance of form2 throws a null exception error. But I think because form2 is not active. How do I work around this or is there … |
|
I have a dataset class in my Project, How do I export the tables in the dataset to PDF using ItextSharp Thanks |
|
I was wondering if it was possible to this: example [CODE] if exists(Select * From table) select item from table set returnValue = 1 Else set returnValue = 0 [/CODE] Or if there any other way of doing this this |
|
Please does any know how to create a word document or PDF file from the textboxes and datagridview values? Thanks |
|
I currently moved my windows form project to a different PC. In the project UI have some text boxes with a default value of "0". Before the move this worked fine. now if I run the code the UI does not show this default values. designer Code: [CODE] namespace PersonalBudget … |
|
I want to assign a color to my excel column [CODE] currentRow.Interior.ColorIndex = 17; [/CODE] But I don't want to use one of the colors in the excel palette I do I add my own color. for instances: [CODE] currentRow.Interior.Color = Color.LightBlue; [/CODE] Thanks for the help |
|
Like in asp.net you save items in viewState, is there similar function with windows form? |
|
I have property method in my window forms: public int selectMonthIndex { get { return selectMonthIndex = =monthSelection.SelectedIndex; } set { if (monthSelection.SelectedValue.ToString() == "February") { selectMonthIndex = 2; } } } After the selections and the OnSelectedIndexChange was triggered the user enters information and click save. the save function … |
|
I am trying to return the value of a column if a condition is met: [CODE] cmd.CommandText = "SELECT plan_entity_id FROM PLANNER_INFO Where plan_id = plan_id"; cmd.Parameters.Add("plan_id", SqlDbType.Int, value); con.Open(); returnValue = Convert.ToInt32(cmd.ExecuteScalar()); [/CODE] for instance, if Plan_id is 1 it returns the entity ID which is equals to 1. … |
|
I have a link on page 1 if clicked take u to page 2 and page 2 if u click okay it should take u back to page but when I use this on page 2 to: [code] ViewState["back"] = Request.UrlReferrer;[/code] it returns null, how do I fix this on … |
0 Reputation Points
0 Endorsements
Ranked #9K
~3K People Reached
Favorite Forums