|
Normal rdlc files (Reporting Services)
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
Instead of getting the report to read the app.config, try passing the location as a parameter
I are troll
|
|
|
|
|
What do you mean. Pass the location as a parameter and set it in the App from the app.config?
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
Read the location (in your app) on startup from the app.config, and pass the location as a parameter
I are troll
|
|
|
|
|
Thats what I ment thanks
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
I'm developing a client-server,(VB.Net/SQL Server) Incident Management system with up to 8 users. Each User is performing actions that generate entries in a single log table in the DB. I want each user to have a common view of all log entries, regardless of the source, updating whenever a new entry is inserted in the log. The display will be a listbox or grid control. How do I get the control automatically updated? Do I need A Broker service and async application on the client to get messages? I have seen suggestions of using managed code. I hope someone has tried this before and might suggest a way to do this.
|
|
|
|
|
Meaning that there is a table in your database, and you want the screen to automatically update when the table in your database changes?
A simple method would be to add a datetime-stamp to each record you insert, and doing a SELECT MAX(lastwritedate) every minute or so. That would give you the date/time that the last record was modified
I are troll
|
|
|
|
|
Thanks for the reply Eddy.
I was looking for something more "real time". The system is for a volunteer fire station HQ controlling 7 brigades. When incidents start there could be 20 or more log entries a minute as appliances are paged, go mobile and get directions for approach, etc. Each of those activities come from a different operator and I'm hoping that all operators see all entries as they are inserted in the log table. The log entries do have a datetime stamp. I was looking for a method: row inserted into the log table, vb control gets the entry and displays it at the bottom of a scrolling list as near as possible in "real time".
Thanks again for your quick reply.
|
|
|
|
|
Look into SQL Server Notification Services. It does exactly what you're describing.
|
|
|
|
|
|
mates,
how to convert date to integer in vb.net. I searched already in google
and test it. Convert.Int32 is not what i want.
When i code it in
VB6/VBA:
Dim m_lDate As Long
m_lDate = Date
m_lDate = DateAdd("m", -1, m_lDate)
This will work.
But it VB.NET:
Dim mDate As Integer
m_lDate = Date
mDate = DateAdd("m", 1, mDate)
Got an error:
Value of type 'Date' cannot be converted to 'Integer'
How to do that in VB.NET?
Thanks in advance
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
What do you want the int to be tho ? Would the property that returns a value in Ticks do what you need ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: What do you want the int to be tho ?
I need it to my function that will add date, month, and year when i press
+/- button.
Here's what i did in vba.
Function ScrollDate(FNAME As String, CTname As Control, vskip)
Dim CTLN As Date
CTLN = CTname
CTLN = CTLN + vskip
CTname = CTLN
DoCmd.RepaintObject A_FORM, FNAME
End Function
So everytime i will click +/- button, i will call ScrollDate
Perfectly working in vba.
But in vb.net. I don't know what to do?
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
YOu mean, add two dates together ? How does this relate to having the date in a form as a single int ? What I don't get it, what format do you want, specifically, or don't you care, so long as it represents a date as an int ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: what format do you want, specifically, or don't you care, so long as it represents a date as an int ?
yes, i don't care the format, as long as i get the int value from date value.
Example in vb6/vba:
myDate as Long
myDate = Date (2009/03/23)
so therefore myDate = 39896 (long)-->i need this in vb.net
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
OK, so ANY int value will do ? So the Ticks property I suggested you use, in my first reply, will work just fine ? DateTime.Now.Ticks
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
how to connect msaccess database in dotnet
|
|
|
|
|
a) By searching google and following the thousands of examples.
b) By reading the help manuals
c) By searching this site, i doubt you are the first to ask!
|
|
|
|
|
It took you 7 minutes here and still no direct answer. While, googling would have taken less than a minute.
जय हिंद
|
|
|
|
|
hello every one...
i want to sort particular column of Listview on click of label
for that i wrote code in label mouse click event:-
Private Sub lbl2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lbl2.Click
Try
Me.lst1.Sorting = SortOrder.Descending
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
but this code sorts the whole listview but i want to sort particular column
of Listview....and for that this code doesn't work...
so please suggest me what to do...
|
|
|
|
|
|
I am programming in VB.NET.
I have a csv comma delimited file with this data in it.
1212.5,10:01:56,2
1212.25,10:01:59,1
1212.5,10:02:00,1
1212.25,10:02:01,1
1212.5,10:02:04,7
1212.25,10:02:04,2
1212.5,10:02:05,2
1212.25,10:02:07,16
1212.5,10:02:10,1
1212.25,10:02:10,1
1212.5,10:02:11,1
I read the second field, which is the time field into this structure TickData(i).dTime.Str But I can't figure out how to put the hour into TickData(i).dTime.H and the minute into TickData(i).dTime.M and the seconds into TickData(i).dTime.S.
My structure's are as follow.
Structure TickTime
Dim H As Single
Dim M As Single
Dim S As Single
Dim Str As String
End Structure
Structure TickD
Dim CPrice As Double
Dim dTime As TickTime
Dim Vol As Double
End Structure
Could someone Please help!
Thank You
Gary
|
|
|
|
|
The key is the Split method.
Dim timeParts() as string
timeparts = TickData(i).dTime.Str.Split(":")
TickData(i).dTime.H = Ctype(timeParts(0), Single)
TickData(i).dTime.M = Ctype(timeParts(1), Single)
TickData(i).dTime.S = Ctype(timeParts(2), Single)
Unless there's a reason for using Single in the Structure for the time elements, you might want to save some bytes, and eliminate any possible rounding issues by using Integer or even Short.
|
|
|
|
|
Thank You very much. I will try this right away!
Gary
|
|
|
|
|
I tried it but this is the error I got.
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="TickChart"
StackTrace:
/////////////////////////////////////////////////////////////////////////////
This is how I did the loop!
Dim timeParts() As String
For i = 1 To UBound(TickData)
timeParts = TickData(i).dTime.Str.Split(":")
TickData(i).dTime.H = CType(timeParts(0), Single)
TickData(i).dTime.M = CType(timeParts(1), Single)
TickData(i).dTime.S = CType(timeParts(2), Single)
Next
|
|
|
|