|
Hello Friends,
I want to print contents of my Crystal report .Net to a Generic text Only Printer say an Epson 300+. But some how my printing gets disturbed.This happens only when my printer is using the Generic Text Only driver. My main concern is to print the report as fast as possible.
Thanks
Amit Kadam
|
|
|
|
|
Hi,
I have to compare MS Word Documents ie., the original document is to be compared with the same document after some editing and the process should be able to show the changes made. Please help me. The code should be in C#
thanx,
Nitin.
Nitin Raj Bidkikar
|
|
|
|
|
|
Hi,
Iam able to merge MS Word documents using c#. For using this code i have to select each and every Word document to be merged. Can any one tell me how to merge all the documents present in a folder at one go.
thanx
Nitin
Nitin Raj Bidkikar
|
|
|
|
|
Why you send same things with different titles
from your questions this post and your post about the zips are the same problem!
|
|
|
|
|
Hi,
I have to unzip multiple folders present in a single folder using c#. I have the code for doing this and it is working fine. For using this code I have to select the file that is to be unzipped and then after unziping it I have to select the next zip file and unzip it and so on. This is a very long process. Can anyone tell me how to unzip all the zip folders present in the parent folder at one go.
thanx
Nitin.
Nitin Raj Bidkikar
|
|
|
|
|
You can use Directory.GetFiles method for locating all the zip files and then use your code
I think general scheme whould be like this
<br />
<br />
string[]zipFiles;<br />
<br />
foreach(string zf in zipFiles)<br />
.<br />
.<br />
.<br />
<br />
<br />
hope the post would help
|
|
|
|
|
hey
ur soln has helped me........but along with the zip files there are some word documents present....so when the control comes to the word files it is throwing exception.......how do i make the code to ignore the word docs and just unzip the zip files.....
thanx
nitin
Nitin Raj Bidkikar
|
|
|
|
|
you can filter the files with using the overloaded version of the GetFiles(string path,string searchPattern)
it would be somewhat like this for zip files
<code>
string[] files=System.IO.Directory.GetFiles(path, "*.zip");
</code>
good luck
|
|
|
|
|
Dynamically created user control with its parent control
Hi..
how could i access the user control's objects from its parent control.
i've created a control which includes a listbox and a another usercontrol(CHILD1)..say control CHILD2.
now m dynamically adding CHILD2 control within a control say Parent1. now i wants to access the values entered within the CHILD2..which provides me the values of the listbox and the CHILD1's control.
but the debugger shows that the listbox is no more exist in the class of CHILD2 itself...
is there any way to get the values from all the control ... in the parent control..
thanks in advance
Bhuwanesh Joshi
|
|
|
|
|
you can try
foreach(CHILD2 cl in Parent1.Controls)
{
cl.properties of user control;
}
rahul
|
|
|
|
|
Hi,
i have a little quiestion, about deserializing a custom type...I want to deserialized this custom type but actually i dont know it. What i mean is for example i have a type called TypeA - i serialized it. But when i want to deserialized i dont know what type i have at the xml file(for xml serialization). I want to find it out.
Is there way to find what type i have?
|
|
|
|
|
One option would be to serialize as part of the object the Type's FullName.
this.GetType().FullName
This wont help you on "automatically" deserializing that object, but you could directly interrogate the Xml to determine what the type was of the serialized object.
|
|
|
|
|
Sorry, I am a beginer, is there any article to understand serialization.
Thanks,
h.
|
|
|
|
|
Yes there is. Search on codeproject
|
|
|
|
|
The only solution I know is to store the type during serialization. When deserializing, first deserialize the type description and deserialize the object afterwards, using a switch statement for the type to deserialize.
It took me a lot of time to find out how to do it. I will write an article about this subject for codeproject. I think it may be ready somewhere next week.
Rudolf Heijink
|
|
|
|
|
Thank you! It's really hard work, i couldnt found any topics about this problem. It's currious for me to see the way you do this, so i'll wait next week if you don't mind send me an email to pa_tcho7@yahoo.com with the link of the topic.
Best Regards
|
|
|
|
|
I want the date format to be in this way like 15-jun-2005 using c# dot net
Regards,
Magi
|
|
|
|
|
Magh_M wrote: I want the date format to be in this way like 15-jun-2005 using c# dot net
Jesus, I say to my 5 year old niece "I want's never get". I'd expect someone even old enough to ask a programming question would have the decency to say please if they're asking for help!
myDate.ToString("dd-MMM-yyyy");
You're welcome!
|
|
|
|
|
you can try
DateTime dts = DateTime.Now;
MessageBox.Show(dts.ToString("dd-MMM-yyyy"));
rahul
|
|
|
|
|
You forgot to put URGENT!!!!!! on the end of your demand.
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days
|
|
|
|
|
The upload button's click event should activate the conversion of excel to ADO.
protected void butUpload_Click(object sender, EventArgs e)
{
private void BindData()
{
DataSet dsLoginSourceGrid = GetLoginDataSet();
GridView1.DataSource = dsLoginSourceGrid.Tables[0].DefaultView;
GridView1.DataBind();
}
private string GetConnectionString()
{
string strConnectionString = ConfigurationManager.ConnectionStrings["constr"].ToString();
return strConnectionString;
}
}
|
|
|
|
|
you can define the method out side and can call from another method.
rahul
|
|
|
|
|
Hi Rahul,
Can you please give me an example: Based on my code??
|
|
|
|
|
Why would you want to define either of those methods inside another method, rather than just call the method in the usual way?
Do you have any experience in programming, or is this one of your first attempts? If it is I strongly advise you pick up a book on C# (or whatever chosen language) and work through the basics!
|
|
|
|