|
praneetham wrote: web application
Wrong place. Try ASP.NET or web forums.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
...
Blog link to be reinstated at a later date.
|
|
|
|
|
I have this code developed to run a bat file. the code is set to a buttonclick event......bat file is crating correctly ..when i double click on it it works fine..but the bat is not executing from the program..cant figure out what the reason..your help is appriciated..
string text = "compdld -d -i\"C:\\softpay\\ver22\\output\\cpac\\ads\\files\\softpayx.dld\" -w\"C:\\HSBMFC\" -momni-5150 -aHSBMFC -tTID01 -gl -fl";
File.WriteAllText(@"C:\COMPDLD\a.bat", text);
ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
psi.FileName = @"C:\COMPDLD\a.bat";
psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = psi;
p.EnableRaisingEvents = true;
p.Start();
while (!p.HasExited)
{
System.Threading.Thread.Sleep(1000);
}
if (p.ExitCode != 0)
{
}
|
|
|
|
|
Good morning.
May be you should also specify the working directory.
or try to launch cmd.exe with your batch file as argument (same command as the one created when you make a shorcut on a batch file:
C:\WINDOWS\system32\cmd.exe /k mybatch.bat.
Regards.
|
|
|
|
|
Get the standard output stream from the process
Natza Mitzi
|
|
|
|
|
You actually should do both (specify the correct working folder and using cmd.exe).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hello,
I am very new to Crystal Reports and i am trying to implement specific report format.
I have programmatically created some data tables (using SQL queries) which are to be displayed in grid format in report.
Each Data Table corresponds to one column data and they are mapped with the Data Tables created in DataSet . I am using Standard report to display data but i don't know how to display the data in grid layout.
I tried to use Cross Report but i don't want to group the data or count and other unnecessary fields.
Also, all columns are not having equal no. of rows so the Box object and Line object are not solving my purpose if i use Standard Report.
Please see the report format image at http://sites.google.com/site/gridformat
I have the data ready with me but i am struggling to wrap it out with specified grid layout.
Please tell me how to generate the grid with merged column header and fill the data in it?
Thanks in advance.
|
|
|
|
|
here i want to create sequence no. with every ..
like...
and show in richtextbox control..
here is my code:-
richTextBox1.LoadFile(filepath,RichTextBoxStreamType.RichText);
string inputstring = richTextBox1.Text;
StringBuilder sb = new StringBuilder(inputstring);
sb.Insert(0, "
");
sb.Replace("\n", " " + "\n" + "");
sb.Replace(" ", "");
sb.Append("");
sb.Replace("", "");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
richTextBox1.Text = sb.ToString();
|
|
|
|
|
i have datagrid i want to update my grid values to sql table in button click,
is there any ways that values can automatically update while entring.
please help me i am fresher. its urgent
thanks in adv.
|
|
|
|
|
1. uslesss subject line
2. databinding
3. UjwalGwoda wrote: i am fresher so?
4. UjwalGwoda wrote: its urgent of course it is, silly us for not responding sooner.
Note - there is clue in the above.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi guys...
How to create radio buttons dynamically and assign textbox value to radio button text.
Krish
|
|
|
|
|
RadioButton is an ordinary class so to create new instance you just need to call its constructor and assign it some variable. Like this: RadioButton rd = new RadioButton() It has a property called Text so you can use it to set its text. The text can come from any source. rd.Text = myTextBox.Text
Note the radiobutton will not be visible if you don't add it to a form or container control.
|
|
|
|
|
Thanx dude its working.
Very good support
|
|
|
|
|
You are welcome
|
|
|
|
|
I am programming a movie info collect tool. I think store all data with XML is OK.
Here is the MovieDataXML
<?xml version="1.0" encoding="utf-8" ?>
<Data>
<Movie>
<ChineseName>aa</ChineseName>
<EnglishName>aa</EnglishName>
<Year>aa</Year>
<Area>aa</Area>
<Type>aa</Type>
<Language>aa</Language>
<Subtitle>aa</Subtitle>
<IMDB>aa</IMDB>
<Resolution>aa</Resolution>
<Director>aa</Director>
<Actors>aa</Actors>
<Introduction>aa</Introduction>
<BelongTo>aa</BelongTo>
<DiscNumber>aa</DiscNumber>
</Movie>
</Data>
And when I try to read the data.
ClassXMLHandler clsXmlHandler = new ClassXMLHandler();
string strMovieData = "Data";
XmlNode xNodeMovieData = clsXmlHandler.MovieDataDocument.SelectSingleNode(strMovieData);
XmlNodeReader xReader = new XmlNodeReader(xNodeMovieData);
Here is the problem
If I read XML data by DataTable
There will be a Exception "DataTable does not support schema inference from Xml",
If I create this DataTable schema manually,there is no data in that DataTable.
DataTable dtMovieData = new DataTable();
dtMovieData.ReadXml(xReader);
But I found it is OK if I use DataSet instead of DataTable
DataSet ds = new DataSet();
ds.ReadXml(xReader);
I don't know why.
|
|
|
|
|
I get this string from device : 6.623E-2\n,#wz4y
How do i get 6.623E-2 ?
thanks
|
|
|
|
|
|
|
What about
- yourstring.Split(new char[] { '\n' }) or
- yourstring.Substring(0, yourstring.IndexOf('\n') or
- Regex.Match with pattern @"^([^\n]+)\n.*"
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
\n or \r\n are concidered new lines.
if you load following string:
"test\r\nmore test"
in a multiline textbox it will appear:
test
more test
|
|
|
|
|
|
But you need to be sure that the '\n' is there or test for -1.
|
|
|
|
|
Hi,
How can i "store" a image in a xml file?
I am thinking in a byte[] like in sql server.
<user>
<f_name>John<f_name>
<l_name>Black<l_name>
<image>w3cvbjr7lerr4hh56ws2<image>
<user>
Any help welcome; link, code, whatever
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Since you can't stored just any old character you want in an XML file, you'll have to convert the image to a string that XML can hold. A thought off the top of my head says convert it to a base64 string and store that.
|
|
|
|
|