|
I don't know how use this library.
I 'll advise you to use the iTextSharp library which is well know by a large number of developpers.
It seems to be easier to get tutorial on the net...
modified on Friday, April 24, 2009 5:45 AM
|
|
|
|
|
hi..tom,
thx for ur warm response...
if there is any related topic or example??
which provide me some help...!!
i am waiting ur response.
thx
raj
|
|
|
|
|
I think you were able to it yourself, it pretty easy :
Here
The first answer is a Code project link, so you can also search on the website before annoying people with small talk
|
|
|
|
|
|
Hi All,
I have a file to send to client rtu. I want to display progress bar while sending file. How it should be implemented in windows form in c#.
|
|
|
|
|
Well, the progress bar should run on another thread. I assume you get some sort of callback as the file is sent to tell you how much has been sent ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
public void GetCookie()
{
string subkeyName,subkeyValue;
string str = null;
str = Request.QueryString["productid"];
Addtocart.Value = str;
Addtocart.Expires = DateTime.Now.AddDays(1);
Response.Cookies.Add(Addtocart);
for (int i = 0; i < Request.Cookies.Count; i++)
{
AppCookie = Request.Cookies[i];
output.Append("Name = " + AppCookie.Name + " ");
if (AppCookie.HasKeys)
{
for (int j = 0; j < AppCookie.Values.Count; j++)
{
subkeyName = Server.HtmlEncode(AppCookie.Values.AllKeys[j]);
subkeyValue = Server.HtmlEncode(AppCookie.Values[j]);
output.Append("Subkey name = " + subkeyName + " ");
output.Append("Subkey value = " + subkeyValue +
"
");
}
}
else
{
output.Append("Value = " + Server.HtmlEncode(AppCookie.Value) +
"
");
}
}
CacheMsg.Text = output.ToString();
}
Through above coding we try to store more than two cookies but we didn't achieved.....so is there any way to store more then two cookies
|
|
|
|
|
hi,
i developed a small project. where i used a axwinsock comm component.
its runs on my machine, the setup.exe works on my pc. but when i try it to client pc
it gives an error "Project1.exe has encountered a problem and needs to close"
try tried other project and they were working...
My question is that "Is that the problem of comm component" ?
|
|
|
|
|
ddravin2000 wrote: but when i try it to client pc
it gives an error "Project1.exe has encountered a problem and needs to close"
First of all which Framework did you used ? Does the client system having the same framework?
Does all dll present in the Client System?
Try to build a setup project, Add all dependency with the setup and then install it on client system then try.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
yes i checked ...
the client machine has .Net Framework 2.0.
which is installed by my setup..
i used axwinsock component.
now problem is same what i do?
|
|
|
|
|
Hi all,
I have HTML code like: "". how can I get the final local path that this web handler generated or other methods to get a reference to the final image?
Thanks,
|
|
|
|
|
You can't find out the path on the server. If you're running this code on your server, then you should be in the ASP.NET forum.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I want to save ,or print The Whole ClientZone Of Window With The Scroll .when I used the API function - bitblt- to save,or print ,but it only save ,or print the part that is showed in the screen ,not the whole Clientzone.
so ,now ,I pleg help from someone who knows how to do it,
thank you .
|
|
|
|
|
Dear All,
I had the following code tested in my test environment, it works fine in my test environment
private bool CheckRcvFileLocation(string rcvLocation, ForeignSystem foreignSystem)
{
Uri uri1 = new Uri(rcvLocation);
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri1);
request.Credentials = foreignSystem.NetworkCredential;
request.Method = "HEAD";
HttpWebResponse response = null;
try
{
System.Console.WriteLine("test2");
if (request == null)
{
System.Console.WriteLine("Test2a");
}
else
{
System.Console.WriteLine("Test2b");
}
response = (HttpWebResponse)request.GetResponse();
System.Console.WriteLine("Test3");
return (response.StatusCode != HttpStatusCode.NotFound);
}
catch (WebException e)
{
response = (HttpWebResponse)e.Response;
if (response.StatusCode == HttpStatusCode.NotFound)
return false;
else
throw;
}
finally
{
if (response != null)
response.Close();
}
}
however when I put it into the real world, the "Test3" never gets executed, instead it returns me "Object reference not set to an instance of an object" as soon as the code goes to "response = (HttpWebResponse)request.GetResponse();"
Are there any settings that i need to aware to get these codes working in production environment?
regards
Andie
|
|
|
|
|
Any news when LINQ be able to talk to Oracle/MySQL/Sybase ...? I hear thus far it's very much a M$ specific...
(And what do you think it will do to NHibernate when it starts supporting other db?)
Thanks
dev
|
|
|
|
|
Hi everyone. I'm new here and new to using C# coding as well so any help would be greatly apprectiated! I am trying to build my program but this message keeps popping up: Operator '||' cannot be applied to operands of type 'bool' and 'string'
I have tried everything that I know. Please help! The code is below:
using System;
namespace Program13
{
class StateAbbreviations
{
public static void Main( )
{
string stateabb;
Console.WriteLine("Enter all of the following state abbreviations: NC, AL, GA, FL, OH");
stateabb = Console.ReadLine();
Console.WriteLine("\n");
if (stateabb == "NC" || "nc")
Console.WriteLine("North Carolina");
else if (stateabb == "AL" || "al")
Console.WriteLine("Alabama");
else if (stateabb == "GA" || "ga")
Console.WriteLine("Georgia");
else if (stateabb == "FL" || "fl")
Console.WriteLine("Florida");
else if (stateabb == "OH" || "oh")
Console.WriteLine("Ohio");
else Console.WriteLine("Not one of the selected states");
}
}
}
|
|
|
|
|
Hi,
try if (stateabb == "NC" || stateabb == "nc")
I advise you buy and study a tutorial book on C#, any book will do you good.
|
|
|
|
|
Oh my gosh! Thank you so much. Worked like a charm. I forgot about that haha.
|
|
|
|
|
Why don't you actually read the error message and check against your code?
it said "Operator '||' cannot be applied to operands of type 'bool' and 'string'" which is what you had, an || operator in between a bool and a string.
|
|
|
|
|
I know. Like I said, I am very VERY new to this so I am getting used to all these new terms. I am kinda getting the hang of it though.
|
|
|
|
|
So 'Nc ' isn't a valid entry, is it (of course doesn't make sense discriminating such a bad way 'Carolina'...)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
May I suggest you use a HashSet?
System.Collections.Generic.HashSet<string> StateAbbs =
new System.Collections.Generic.HashSet<string>() ;
StateAbbs.Add ( "NC" ) ;
...
if ( StateAbbs.Contains ( stateabb ) ) ...
Or something like that, perhaps with a case-insensitive comparer.
|
|
|
|
|
Hi everyBody,
I need the code for sending SMS from PC while the mobile set is connected to PC through USB port.
I have found the code for Com port, but I need the code for USB port.
Thanks for your help.
My ID: invisible_eagle@yahoo.com
|
|
|
|
|
Yep...and i need the code to be rich. Anyone interested to share it for free and let me live as a happy and lazy parasite ?
|
|
|
|
|
I am having a strange issue with reading from Excel with C#
Here is my code:
string excelConnectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0; data source={0}; Extended Properties=Excel 8.0;", txtExcel.Text);
OleDbConnection con = new OleDbConnection(excelConnectionString);
con.Open();
OleDbDataAdapter da = new OleDbDataAdapter("select * from ["+ txtFY.Text +"$]", con);
fy.Text = txtFY.Text;
DataTable dt = new DataTable();
da.Fill(dt);
con.Close();
dataGridView1.DataSource = dt;
dataGridView1.Refresh();
Now it works.. its just some columns that have information in the "actual" excel sheet doesn't appear in the data grid view..
Example:
Here is a column (Serial Column):
136WFW7552
136WFW7556
136WFW7494
136WFW7553
136WFW7492
70101135
71000640
70202250
70101234
70101230
Now when the numbers go from 136WFW7492 to 70101135, it doesn't put the 70101135 numbers in the datagridview... I've removed formatting from the workboot and everything.. I'm confused
|
|
|
|