|
There's little response here, it seems. Try the DevExpress forum. It's a paid product with support.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
After you assign the DataSource to the Report, I want to assign to the label, textbox, xrTableCell1,... Report should I do? or I want to DataBinding, currently running it does not appear at all records
XtraReport1 report = new XtraReport1(); string sql = "select * from Customers";
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(sql, cnn);
da.Fill(ds);
report.DataSource = ds;
report.DataAdapter = da;
report.DataMember = Customers;
report.ShowPreview();
|
|
|
|
|
What is Managed and Unmanaged code...???
|
|
|
|
|
|
If you Google "What is Managed and Unmanaged code" you get about half a million results - the first four look immediately helpful.
If you are having a specific problem understanding what you have found so far - can you ask about that? At the moment it looks like you want a packaged answer without having done any basic research.
Alberto Brandolini: The amount of energy necessary to refute bullshit is an order of magnitude bigger than to produce it.
|
|
|
|
|
In the one case, it is where your boss tells you what to code.
In the other, it is when you go off on your own.
|
|
|
|
|
Hi,
I am developing a C# Windows Application which will run with MySQL backend. I want to have a server application running on the server to do few server tasks. It will be great if my server application will also check the license for me which means it should be running all the time as service or actually running on system tray.
But how can I make sure the application is always running and if not then user won't be able to connect to the server? so the client will do the check for example? or any other idea!
Thanks,
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
Where is your problem?
The client application contacts your LicenseServer during its start. Windows Service is a good choice for that server application; there are options for re-starting a windows service if it happened to crash. If the client does not get a connection to the server, or the server does not issue a license to it, have it showing an error message and quit. You may also set a timer (on the client) to check for the license every few minutes and stop it if no license can be retrieved.
For client-server communication, there are several options like WCF or .Net Remoting.
|
|
|
|
|
I am about to do a Project in C#.
The project was already developed with Two different form in same EXE (say Verification.EXE)
I nee to split these two forms into two different EXE.
Both these forms shares a lot including References and datasets.
If I split these forms into two different EXE will there be delay in time than the previous one without splitting
KALYANA KUMAR P
|
|
|
|
|
What "time" are you talking about? Be specific.
If you are saying that time to execute the application will be longer after splitting, then when you create two exe's your application will be two, and will be launched separately ? isn't it?
And time will hardly matter in this case.
Thanks
Do not forget to comment and rate the article if it helped you by any means.
|
|
|
|
|
KUMAR619 wrote: Both these forms shares a lot including References and datasets. Put the shared code into libraries (in Visual Studio: projects) which will be shared by your two executables (in Visual Studio: solutions).
|
|
|
|
|
I have got to ask, why do the 2 forms need to be in different projects (exe)?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You are right. I asked my seniors they asked me to do so. Then what can I do.
|
|
|
|
|
Are your 'seniors' developers or managers. If they are developers then ask them to explain the business reason why they need to be in 2 exe's. If they are managers then you need to explain the design is invalid and they should leave the design to the architect or the developer.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
My direct senior is a senior developer.
Actually our project deals with hospital patients and their orders.
In first form patient will be displayed according to their category.
When a particular patient is clicked His/Her order form should be displayed.
Its already developed.
The clients abroad asked to separate Exe's to make Main EXE free from Order EXE else if any errors happens the main EXE should not be corrupted.
KALYANA KUMAR P
|
|
|
|
|
Nope - can't help, your client has been sold a really dumb idea and is trying to get you to conform to it. All I can offer is good luck!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
KUMAR619 wrote: if any errors happens the main EXE should not be corrupted
When running, an exe is a read only file so it won't get corrupted.
Also separating applications purely due to the probability of errors points towards needing a decent QC and sign off process.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
modified 7-Aug-14 13:39pm.
|
|
|
|
|
That's an X-Y-Problem. As usual. There is a problem, someone has an idea of how to tackle it, and experiences a problem on that way - now the question is how to continue that way.
Instead of the correct question: what does the customer really need, and - next (nto same!) question - how can that be accomplished. A totally common problem in requirements engineering....
|
|
|
|
|
|
Hello everybody.
I'm not familiar with ABAP at all and I'm trying to automate a SAP report for my job.
At the momment I gotta open SAP (manually of course), login, call the transaction, add some parameters to it, execute it and download the first report. After that I have to work it around (thing that I already automate, so it's not a problem) but then I have to get some other parameters from it and call another transaction to execute with the new parameters that I got from the first report... And so on 2 more times.
My problem is that, after automating all the excel related stuff with C#, I can't find a way to interact with SAP R/3 to login, call the transaction, execute with the parameters and get the report.
Can somebody give me a hint about this?
I googled for a couple of hours and all I found out is that I may have to work with RFC's and BAPI's but I still can't figure out how to do it nor how to use these properly (if I'm right that I have to)
Thanks in advance,
Goliadkin.
|
|
|
|
|
Anyone, something?
|
|
|
|
|
Hi,
first time poster.
I have been programming for quite a while (and used code project quite a lot) but have so far avoided to use XML files.
Now I have to and while I can parse the data, and read values, it still escapes me how XML is the new, so easy way to store ans retrieve data.
I have a XML structure that basically contains a list of files on a hard drive and while I can imagine all kinds of complicated loops to list all paths and files in a list box, I cannot find an easy way to accomplish that.
(I which I could upload an image of the structure
so here it is a code.
The length of the path (Contained folder) is totally arbitrary of course:
Thanks a lot for any input!!!
<pre>
<pre>
-<Drive>
<Name>C:</Name>
-<ContainedFolders>
-<Folder>
<Name>Program Files</Name>
-<ContainedFolders>
-<Folder>
<Name>VirtualBox</Name>
-<ContainedFolders>
<pre><Name>TEST</Name >
-<ContainedFiles>
-<File>
<Name>qtaccessiblewidgets4.dll</Name>
|
|
|
|
|
XML really wasn't designed to be a database if that's what you mean by "store and retrieve data". It's more intended for the formatting, serialization, transmission and transformation of data. It just so happens that XML is a text format that happens to be very easily stored on any storage medium.
In any case, I think your schema could be laid out a bit better. Such as:
<drives>
<drive identifier="C">
<folders>
<folder name="Program Files">
<folders>
<folder name="Some Folder">
<folders />
<files>
<file name="MyApplication.exe" size="1064322" />
<file name="MyLibrary.dll" size="103223" />
</files>
</folder>
<files />
</folders>
</folder>
</folders>
<files>
<file name="Some Junk.txt" size="2310" />
</files>
</drive>
</drives>
A better option would be to skip trying to worry about the details of the XML file and worry more about your class definitions that can be serialized into an XML file. That way you can just build an object graph with the data you're tracking and then just send it to the XmlSerializer and it'll create the XML file for you.
The same serializer can be used to reconstitute the graph from the XML data it wrote.
modified 7-Aug-14 1:33am.
|
|
|
|
|
Do you have a schema definition (*.xsd file) for that type of XML files? If so, you can easily generate classes for handling the data with the xsd tool, e.g.
xsd.exe D:\Temp\gpx.xsd /classes /out:D:\Temp /language:CS
|
|
|
|
|
Assuming you're just looking to get a list of the full paths of all the <File> elements, then LINQ makes this reasonably simple:
static string GetFullPath(XElement fileElement)
{
var names = new HashSet<XName> { "Drive", "Folder", "File" };
IEnumerable<string> pathParts = fileElements.AncestorsAndSelf()
.Where(el => names.Contains(el.Name))
.Select(el => (string)el.Element("Name"))
.Reverse();
return string.Join("\\", pathParts);
}
...
const string xml = @"<Drive>
<Name>C:</Name>
<ContainedFolders>
<Folder>
<Name>Program Files</Name>
<ContainedFolders>
<Folder>
<Name>VirtualBox</Name>
<ContainedFolders>
<Folder>
<Name>Test</Name>
<ContainedFiles>
<File>
<Name>qtaccessiblewidgets4.dll</Name>
</File>
</ContainedFiles>
</Folder>
</ContainedFolders>
</Folder>
</ContainedFolders>
</Folder>
</ContainedFolders>
</Drive>";
XDocument document = XDocument.Parse(xml);
IList<string> filePaths = document.Descendants("File").Select(GetFullPath).ToList();
LINQ[^]
LINQ to XML[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|