|
Here is the xml snippit...
<?xml version="1.0"?>
<?xml-stylesheet type='text/xsl' href='EndOfDayReport.xsl'?>
<EndOfDayReport>
<Heading>
<EndOfDayReportOpskrif>End of Day/Month Report</EndOfDayReportOpskrif>
<ReportPeriod>Report Period: 24 November 2005 - 25 November 2005</ReportPeriod>
<DateCreated>Date Created: 2006/02/10 03:43:48 PM</DateCreated>
</Heading>
<TableEndOfDay>
<StaffID xmlns="2">
<StaffName>Pieter</StaffName>
<Services>
<ServiceID xmlns="1">
<ServiceKey>BW.1</ServiceKey>
<ServiceDescription>BLOW WAVE - SHORT</ServiceDescription>
<Qty>1</Qty>
<Percent>1%</Percent>
<Amount>140.00</Amount>
</ServiceID>
<ServiceID>
<ServiceKey>BW.2</ServiceKey>
<ServiceDescription>BLOW WAVE - MEDIUM</ServiceDescription>
<Qty>0</Qty>
<Percent>0%</Percent>
<Amount>0</Amount>
</ServiceID>
|
|
|
|
|
JJDPPROG wrote: tableEndOfDay
XML is case-sensitive.
JJDPPROG wrote: StaffID xmlns="2"
That xmlns looks incorrect.
|
|
|
|
|
Hi,
I'm sure this is really simple, but my mind has turned to mush at the moment and I just can't figure the best way to sort this out.
I need to create a new log file at the beginng of each day. This will be running in a service, periodicly writing to the file.
Whats the best way to be notified of the start of a new day? A timer with high resolution constantly checking the date running on a thread? That seemed like a heavyweight approach...
Cheers!
|
|
|
|
|
Can't you do the check inside the function that writes to the log?
e.g.
public void WriteToLog( String message )
{
if (currentday != lastlogday)
{
close current log file
create new log file
lastlogday = currentday
}
write message to log
}
--
Help me! I'm turning into a grapefruit!
Buzzwords!
|
|
|
|
|
Sadly no, Its a shared resource. The log file is created and then passed in by ref to a couple of other threads that both write to it.
I've don't it the timer way for now, at least that gets the functionaly working.
Thanks for the help though...
|
|
|
|
|
Hi!
Instead of a high resolution timer checking constantly you could use a simple timer with a 24h interval.
During initialization of your app you setup the timer with an initial interval calculated until midnight.
In the Ticked/Elapsed event you set the interval to 24h and create the new log file.
Should do the trick...
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Hi,
I have a problem where I want to shutdown an external win32 software client from my C#/ASP.net application by pressing a button. I understand that I have to use WM_CLOSE somehow but I dont know how to use it in my C# solution.
I use shelling (VBscript) to lanuch external software on my computer:
Example:
function()
...
objShell.run ("""C:\Program Files\Overview\Overview.exe""- u testuser - p testuser
endfunction()
This works great but if the application( in this case overview.exe) is already running I want to be able to shut it down by pressing a button before I lanuch it .
Please help!
/Ibana
|
|
|
|
|
I want to provide Notification facility in my windows application. When some task is assigned to a particular user by the admin, the task should be displayed in the Inbox(Form in the application) to that user real time.(If that User is logged into the application.) How can the user get info regarding new assigned task? Do I need to have a seperate background process for checking the newly added tasks?
Regards,
Shah Adarsh
|
|
|
|
|
There is no need to use a separate thread to look for the updates, as the main thread is mostly just waiting for anything to happen anyway.
Add a timer to the form, and in the Tick event look for updates.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks Guffa.
But if I do not use another thread, the other task performed by the user will be affected.
Any other way to check the updates than the timer?
Regards,
Shah Adarsh.
|
|
|
|
|
|
And posting it 3 times, with different subjects, was necessary why?
|
|
|
|
|
Sorry but I saw error message while posting it, so I posted it again.
Regards,
Shah Adarsh.
|
|
|
|
|
Hi, I found a problem during Infpath Project development in VS 2005.
I've created a new project in VS 2005 (Office -> Infopath form), this project is a simple Infopath Form wich will recieve and submit some data to my web-service.
First of all I should notice that I didn't created any DataSource in design-time from Infopath Forms Designer, instead I am making all calls to web-service methods and filling Infopath forms controls from C# code-behind file.
Then I wrote some C# code in generated Form's code-behind file, also I've added a WebReference to my web-service and wrote code for web service methods calls and Infopath controls filling.
When I starting my project from VS (F5 or Ctrl + F5) everything works fine and I see the controls on my Infopath form are filled with data from web service.
The problem occurs when I am making Project - Publish Form, the published form (xsn file) contains all dll and other necessary files, but when I runnig published form all controls are empty! It seems like my C# code doesn't executed and no exception or error messages does not appear.
Does enybody knows what happens? I suppose that I should change my security configuration setting in .NET Framework configuration, is that correct?
Thank you for your help or any ideas.
xedom developers team
personal web page
|
|
|
|
|
I've found solution!
To execute C# code with Web Reference to web-service you must digitally sign your Infopath form. It can be done through
Tools -> Form Options - Security:
1. Uncheck Automatically... and select full trust
2. Check sign and create certificate
3. Publish the form
or you should create a msi project to install your Infopath form.
find out more...
xedom developers team
personal web page
|
|
|
|
|
hi
how to Update database with datarow in visual studio 2005 ? when i following steps in vs.2003 the dataset updated but database don't updated .how to do that ????
|
|
|
|
|
System.Data.OleDb.OleDbCommandBuilder command_builder = new System.Data.OleDb.OleDbCommandBuilder(da);
da.Update(dataset);
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
hi all,
i face in my control list.ascx in below td tag background img file
parth is fix, that control is save in ucontrol diactory,
Thet problem is when i call from home page (that is out off folder)
the background img is not display.
thank...
Help!i
|
|
|
|
|
the variables in MC++ "out of scope" when my C# code subclass the MC++ abstract class.
------------
C++ abstract class:
public __gc __abstract class PWiDSForm
{
public:
virtual void NotifyViewHandler(String* funcName, int node, UInt32 LC) = 0;
};
---------------
C# subclass:
public class FormDelegate : WiDSAddinView.PWiDSForm
{
WiDSForm wf;
public FormDelegate(WiDSForm wf)
{
this.wf = wf;
}
public override void NotifyViewHandler(string funcName, int node, uint LC)
{
wf.WiDSEventStackLV_GotoFunction2(funcName,node,LC);
}
}
_____________________
//#program managed
DWORD WINAPI ViewProc(LPVOID lpParameter){
FILE *fp; //just define here
char **temp;
char name[512];
Py_Initialize();
temp = (char **)malloc(sizeof(char *));
*temp = (char *)malloc(20);
strcpy(*temp,"hello");
PySys_SetArgv(1, temp);
if(!Py_IsInitialized())
{
printf("can't init python");
return 0;
}
Py_InitModule("WiDSAddin",WiDSAddinMethods);
sprintf(name,"%s%s", Path,"WiDSAddinView.py");
fp = fopen(name, "r");//----------"out of scope at runtime"
PyRun_SimpleFile(fp, name);
Py_Finalize();
View::WiDSViewHandle = NULL;
return NULL;
}
but if I remove the class inherit, the programs works fine.
What is the problem?
Thanks in advance.
|
|
|
|
|
regasm "$(OutDir)\$(TargetFileName)" /tlb:"$(OutDir)\$(TargetName).tlb"
solve the problem.
|
|
|
|
|
Hi every body
I need Implementation of cristian clock syncronization (distributed OS) immediately.
any one can help me Please?
Tanx A Lot
Soozan
-- modified at 10:00 Friday 10th February, 2006
|
|
|
|
|
|
I think you're going to have to Google this one yourself. You might even end up coding it yourself too. I don't think you're going to find a "wrapped box" solution you can just "plugin" to your code.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
i want to encrypt exe file in hard . when user can click my program the exe file decrypt on the fly and run (when it's decrypting it's running) ????
|
|
|
|
|
And what is the exact problem you are experiencing?
|
|
|
|