|
Hi, I have the same problem! how did you solve it?
thanks!
|
|
|
|
|
I'm sorry, I posted this 3 years ago and can't remember the solution.
There used to be a lot of information about WSODs on the web. I think I might have just recreated the controls I was having issues with and copied and pasted the important code back in from the original files.
|
|
|
|
|
How to print demo page using PJL in C#. I have code for print, but I don’t how to execute in c#.
I have followed step Like
private void ConnectToPrinter(string IPAddress, int Port)
{
//Loads the printer's IP address and port
ipEndPoint = new IPEndPoint(Dns.GetHostEntry(IPAddress).AddressList[0], Port);
//Creates a new socket to connect to the printer. (Streams data through TCP)
socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
socket.Connect(ipEndPoint);
}
o Connect To Printer ( IP, Port)
o strCommand = String.Format("\x1B%-12345X@PJL EXECUTE DEMOPAGE \r\n\x1B%-12345X\r\n"); ;
//Sends the request to the printer.
byte[] sendData;
sendData = Encoding.ASCII.GetBytes(strCommand);
int result = 0;
result = socket.Send(sendData, sendData.Length, 0);
I don’t know , where I made a mistak. Please tell me how to execute PJL Command in C#
Regards
Rajesh
rajesh
|
|
|
|
|
Hello,
m working on C#.net windows application. for version updation i use appupdater dll where in i use virtual directory to update.
When i call
appupdater.CheckForUpdates() i get an exception
System.Net.WebException: The remote server returned an error(404) file not found
Can you give me some suggestions over it.
|
|
|
|
|
I assume an appupdater checks a given URL for an update. What's the URL ? Sounds like it doesn't exist
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I have checked n debugged with the URL it exixts and i get it properly.
|
|
|
|
|
We are developping a Web Application using Asp.Net. We need to find out the IP number of a client running the Web Browser on a remote desktop connection. In other words, this user opens a Remote Desktop Connection on another remote server and runs the WebBrowser on this remote server, and we need actually the IP number of this user OWN machine.
In fact we could get the user client IP easily using the statement "HttpContext.Current.Request.UserHostAddress, but this brings us, naturally, the IP number of the machine on which the RDP connection has been opened.
What we need is possible? How to to it?
Thanks in advence.
|
|
|
|
|
We have an ASP.NET forum. What you need, is not possible, definately not with ASP.NET.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Ok thank you for your reply..
and Really sorry for wrong forum..
|
|
|
|
|
Hi all,
I have a C++ dll which I can use for communication with an external device. Which works fine with one device. But when I want to get access to more than one devices it fails. But I can make it work by executing my program several times. What can I do to get it work inside of one program?
Thanks,
Ralph
|
|
|
|
|
Create multiple application domains that reference the dll, so you load it seperately each time ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I haven't seen your code, but from your description it sounds like you may not be completely re-initializing your DLL variables between devices.
|
|
|
|
|
I created a GroupBox(groupBox1) that contains textBox and buttons(i created this with the design option on the Form).groupBox1 is on a Tab that i created it also on the design option.
After Clicking on a specific button(no matter where) the app opens a new Tab.
i want that the new Tab(tab2) will has the same groupbox1(a copy of the first-not a reference)..How can i do it?
I tried this:
GroupBox g = new GroupBox();
Thank you for your attention
G.
|
|
|
|
|
i think u need to add these controls run time to the collection of controls of tab.
rahul
|
|
|
|
|
|
Marking an answer as bad because you're not able to understand it, is not a good way to get people to want to help you.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
i'll try to help with simple solution
1. create user control contains your groupbox
2. in the form designer, place that user control in your tab
3. if the specific button you mention before clicked, add new tab, create new instance of user control described above, place that control in your new tab
4. if you don't understand what i talk about you must :
- understand what is OOP
- understand how to create and place control in parent control at runtime
dhaim
program is hobby that make some money as side effect
|
|
|
|
|
You can't actually have a reference, a control can only be in one place at a time, so you've got no problem there.
Like people have said, you will need to create a new instance of the controls and add these new controls to the tab.
To see how you can create, setup, and add controls, just check the designers generated code.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Guys i m having access database connected in windows application
and i want to sort a table in that by the values in last column(4th) in ascending when some1 clicks on sort button
any idea??
|
|
|
|
|
You have a database, run SQL against it that sorts your data.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
u can create dataview from ur dataset and can sort the data runtime.
rahul
|
|
|
|
|
if u want it handled by database server, use requery, otherwise if u want it handled by your aplication use DataView
dhaim
program is hobby that make some money as side effect
|
|
|
|
|
Hi
i am creating log file and started to add New line
i user stream write class
<br />
StreamWriter objWriter = new StreamWriter(path);<br />
if (!File.Exists(path))<br />
File.Create(path);<br />
objWriter.WriteLine("[" + DateTime.Now.ToString() + "] "+ Header + Message);<br />
<br />
objWriter.Close();<br />
when i compile the program and it start maintaining the Log and after closing the Programme i check the log file there is one one line written which the last activity that i logged.
wasim khan
|
|
|
|
|
WriteLine should do it, although I am confused how this code works in general. I doubt that the if (!File.Exists code ever runs.
Environment.NewLine is how you write a new line.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
What you want to do is to open the file for append. Instead of letting the StreamWriter create the FileStream , open the FileStream yourself so that you can use FileMode.Append when you open it.
If you want to check if the file exists, you have to do that before opening it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|