Here is my situation...
I have to read a .csv file produced on a Unix box. Any number of people may run this app from the server. (depends on who is on call that night). I want to be albe to:
- Check to see if the drives are mapped.
-If not run the NEW USE Command and map them
-Continue with...
found My own answer...
After giving it a little thought over lunch...
I found my answer here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wroriautomatingwordusingwordobjectmodel.asp
In case any others get this sumbling block....
My primary problem was...
Resolved - Writing to blank word doc...
OK, I need to write some text to a blank word document. I know how to write to a word template and how to select and change text in a previously created document.... but I'm not having any luck writing new text to a new blank document...
I am hoping you...
OK, I want to set the default install path of my project to "c:\Program Files\DragTagPrint\". Currently when I run the Setup Project it defaults to be "C:\Program files\Default Company Name\SetupDragTagPrint\"
It doesn't even set my company name. I'm having difficulty finding information on how...
Thanks for the info!
For everyone's enlightenment the real problem was not proper threading.
Instead it was the way in which my service was cleaning up after itself. Although I was running a “.Kill” on all the Word apps the service could find running on my machine, the memory usage of each...
Nate it apears to me your listener only exists for the OnStart Sub. So Once your on start has finished there is Nothing telling it to keep "Listening".
I'm not positive that is Your actual problem but you might want to add a system.timers.timer to your service and have it kick off your listener...
...Sub
Public Sub CheckForFiles()
Dim di As New IO.DirectoryInfo("c:\WatchFiles\")
Dim fiGetFiles As IO.FileInfo() = di.GetFiles("*.csv")
Dim fi As IO.FileInfo
Try
For Each fi In fiGetFiles
DoProcess(fi.Name)...
I tried to that just wednesday afternoon. My problem is that I only know the proper file name while inside the "fsw1_Created" Sub. You can't pass values to delegates in v1.1 so how would you suggest I get the file name to the worker subs?
I've thought of using an application string array but I...
Solved - Threading in a windows service????
:confused:
I have a file watcher service that picks up a file, reads some data from it, Puts the data on a word document, prints the document, and then moves the file to another directory.
If only one file is droped to the watched directory at a...
Ok I've written a file watcher service that reads a posted csv file uses some data out of it to print a Shipping Lable and then moves the file onto another folder.
I've compiled, installed and started this service a good 100 times durring debugging. No problems.
However, now that I've...
I have 2 datagrids.
On each row of the first datagrid one of two fields need's to be a link that will call the sub that fills my second datagrid.
I wrote the following code in the first datagrinds itemdatabound handler to add my link/event.
PrivateSub dgOrders_ItemDataBound(ByVal sender...
What is the compelling reason to use a web service (designed primarily to handle small reoccurring data requests - Like the most current stock price for Target or the conversion rate for yen to dollars) verses a more robust windows service (or even a 3 tiered application)?
I have to retrieve...
USE THIS INSTEAD
Once Your datagrid has been completely databound Do This...
Dim ExportData As New genData 'I have the following sub routines in thier own "general Data" vb page.
ExportData.RenderGridToExcelFormat(//datagridName//, "//fielnameToSave//", //CAN BE MADE OPTIONAL OR TAKEN...
One solution to "How to create a dll which...."
I have a fully complied ddl as follows:
PublicClass cDataMain
PublicEnum DataBaseList
None
Common
Deal
Main
Ohio
Other
DealHist
MainHist
Omega
Retail1
Weighted1
EndEnum
PublicFunction fConnectToDB(ByVal dbList As DataBaseList, OptionalByVal...
Are You rebinding the datagrid for table 3 after each update to the datagrid for table 2? from you inital description it apears your "refresh/rebind" of table 3's datagrid is not happening in the right place.
I have an app similar to this and had the same problem.
My fix steps were as...
Use this instead...
Try
'SET UP A SQL COMMAND
strSQL = "select SOCSO_id,salary_from,salary_to,Emplyr_Contrbn,Empl yee_Contrbtn from SOCSO "
myConnection = New OleDb.OleDbConnection(sConnString)
Dim myCommand As New OleDbCommand(strSQL, myConnection)
Dim dt AsNew DataTable
Dim da As New...
Proper anser is to make the data base CASE sensitive!
Then it won't matter how the "admin" input the information the "user" must put it in the same way.
In a case sensitive database "pn1001" is NOT equal to "PN1001".
You also need to make sure that the field you are searching for in your data...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.