|
I need help on Getting the Subscription details of the Reports that has been included in the SSR Server . How to get the details of the Subscription using VB.net AnyBody could help me out . My Thanks in Advance because its very urgent for me
|
|
|
|
|
praveenkjohn wrote: SSR Server
Never heard of it.
praveenkjohn wrote: How to get the details of the Subscription using VB.net AnyBody could help me out
You're best source of information for this would be Support from Applied Software[^]. It's very unlikely anyone with any experience with this product is going to see your post.
|
|
|
|
|
Hi all,
I want to export the tables in a SQL Server to a Access database.How can i do this using VB.Net
Thanks in Advance
Dana
|
|
|
|
|
You'll have to read each record from the SQL table, probably using an SqlCommand and it's ExecuteReader method, and assign the values from each field to the appropriate fields in the OleDbCommand INSERT code to write the data to an Access table.
|
|
|
|
|
:-DHow can I create HTML help file for an application. I mean i amde html file, but cant call it from my application. Will you please give a sample code for it.
By Dileep P A
|
|
|
|
|
If your help file is HTML, just put a web browser control on your page, and set the URL to be the path to the file.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i don't know if i completely understand you
BUT if you write your html to any file with
File.WriteAllText("yourfile.ddd", strhtml, System.Text.Encoding.UTF8)
then with a simple webbrowser control you can view it
WebBrowser1.Refresh()
WebBrowser1.Navigate("yourfile.ddd")
hope that helps
isidoros
|
|
|
|
|
hello
i have two computer both are connected to the internet
i would like to create a client program that could download
a file from a server
where do i start?
ty in advance.
|
|
|
|
|
You should be able to find everything you need in the System.Net namespace. If not, try Google or MSDN.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
|
|
if driver file dvr card is .sys only file
Can i use directx for develop ?
|
|
|
|
|
*sigh* If you have a video device, then DX is the only way to work with it, unless they offer an SDK. Trying some of the example code on this site will tell you if it works with DX. Didn't I tell you this yesterday ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Has anyone had experience executing Oracle stored procedures with input & output parameters with VB.net? I've researched online help, articles websites etc. but it does not work. The stored procedure has 5 parameters. The first 3 are Ouput, the 4th is In/Out and the 5th is Input. Here is a sample of the code being used:
Dim cmdAPI As OracleClient.OracleCommand
Dim drAPI As OracleClient.OracleDataReader
'specify API and setup command
pstrSQL = "Oracle_API_test"
cmdAPI = New OracleClient.OracleCommand(pstrSQL, pcnnOra)
cmdAPI.CommandType = CommandType.StoredProcedure
'setup stored procedure parameters
Dim info_ As New OracleClient.OracleParameter("info_", OracleClient.OracleType.VarChar, 256)
Dim objid_ As New OracleClient.OracleParameter("objid_", OracleClient.OracleType.VarChar, 256)
Dim objversion_ As New OracleClient.OracleParameter("objversion_", OracleClient.OracleType.VarChar, 256)
Dim attr_ As New OracleClient.OracleParameter("attr_", OracleClient.OracleType.VarChar, 2000)
Dim action_ As New OracleClient.OracleParameter("action_", OracleClient.OracleType.VarChar, 256)
'set value of parameters
cmdAPI.Parameters.Add(info_)
cmdAPI.Parameters(0).Direction = ParameterDirection.Output
cmdAPI.Parameters.Add(objid_)
cmdAPI.Parameters(1).Direction = ParameterDirection.Output
cmdAPI.Parameters.Add(objversion_)
cmdAPI.Parameters(2).Direction = ParameterDirection.Output
cmdAPI.Parameters.Add(attr_)
cmdAPI.Parameters(3).Direction = ParameterDirection.InputOutput
cmdAPI.Parameters(3).Value = "'PART_NO'||chr(31)||'LG003'||chr(30)||" _
& "'DESCRIPTION'||chr(31)||'Test Part3'||chr(30)||" _
& "'UNIT_CODE'||chr(31)||'EA'||chr(30)||" _
& "'CONDITION_CODE_USAGE'||chr(31)||'Not Allow Condition Code'||chr(30)"
cmdAPI.Parameters.Add(action_)
cmdAPI.Parameters(4).Direction = ParameterDirection.Input
cmdAPI.Parameters(4).Value = "'DO'"
'execute stored procedure
cmdAPI.ExecuteOracleNonQuery(0)
'analyze parameter values
strTmp = IIf(IsDBNull(cmdAPI.Parameters(0).Value), "null", cmdAPI.Parameters(0).Value)
TextBox1.Text = strTmp
strTmp = IIf(IsDBNull(cmdAPI.Parameters(1).Value), "null", cmdAPI.Parameters(1).Value)
TextBox2.Text = strTmp
strTmp = IIf(IsDBNull(cmdAPI.Parameters(2).Value), "null", cmdAPI.Parameters(2).Value)
TextBox3.Text = strTmp
strTmp = IIf(IsDBNull(cmdAPI.Parameters(3).Value), "null", cmdAPI.Parameters(3).Value)
TextBox4.Text = strTmp
strTmp = IIf(IsDBNull(cmdAPI.Parameters(4).Value), "null", cmdAPI.Parameters(4).Value)
TextBox5.Text = strTmp
cmdAPI.Dispose()
pcnnOra.Close()
Larry G
Prodev Solutions
|
|
|
|
|
Is it giving you an error? Are you setting the values in the procedure?
Mike Lasseter
|
|
|
|
|
Thanks for replying Mike. I have it working now. Needed to change the parameter value text to better suit the VB.net environment instead of the literal SQL/plus environment.
Larry G
Prodev Solutions
|
|
|
|
|
Please help me about listview
i want to have rows with multiline text. what shall i do?
labelwarp is working just in icon mode , I want it in detail mode.
Alvin.
|
|
|
|
|
You have to ownerdraw the ListView controls items. Just Google for "vb.net owner draw listview[^]" and you'll come up with tons of examples.
|
|
|
|
|
Hi! I would like to; "really" know how to get the current text line number where the caret is at.
(not the "line number" just the "text line number":
when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.)
a = Rtb.GetLineFromCharIndex(rtb.SelectionStart)
So can anyone tell me a way to get the real line number of the selected text.
thanks in advance
|
|
|
|
|
Reposting the same question in the same day won't get it answered any faster.
The RTB doesn't support giving you the screen text line of the caret. The screen line of text also doesn't have any meaning. What screen text line is the caret on if the top line of text displayed is only partially visible?? See what I mean?
You can get the position of the first character of the line, but there is no method to convert that position to a screen text line.
So what are you trying to do with this anyway??
|
|
|
|
|
never mind I found a way.
|
|
|
|
|
|
I'm having trouble with some code to convert a 24bpp image to a 1bppindex image. I get an exception when I do a Marshal.copy of the destinationBuffer back to the 1bpp image. The exception message is: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
If my destination bitmap is an 8bppindex image or higher (ie. 24rgbbpp) the problem doesn't occur.
Public Function ConvertToBitonalNew(ByVal original As Bitmap) As Bitmap
Dim source As Bitmap
source = original
Dim rect As New Rectangle(0, 0, source.Width, source.Height)
Dim bmpData As BitmapData = source.LockBits(rect, ImageLockMode.ReadWrite, source.PixelFormat)
Dim ptr As IntPtr = bmpData.Scan0
Dim imageSize As Integer = source.Width * source.Height * 3
Dim sourceBuffer(imageSize - 1) As Byte
Marshal.Copy(ptr, sourceBuffer, 0, imageSize)
source.UnlockBits(bmpData)
Dim destBmp As Bitmap = New Bitmap(source.Width, source.Height, PixelFormat.Format1bppIndexed)
destBmp.SetResolution(source.HorizontalResolution, source.VerticalResolution)
Dim destData As BitmapData = destBmp.LockBits(New Rectangle(0, 0, destBmp.Width, destBmp.Height), ImageLockMode.ReadWrite, destBmp.PixelFormat)
Dim ptrDest As IntPtr = destData.Scan0
imageSize = destBmp.Width * destBmp.Height
Dim destBuffer(imageSize) As Byte
Dim y As Integer = 1
For x As Integer = 2 To sourceBuffer.Length - 1 Step 3
If sourceBuffer(x) > 128 Then
destBuffer(y) = CByte(1)
Else
destBuffer(y) = CByte(0)
End If
y = y + 1
Next x
'the line below throws an exception
Marshal.Copy(destBuffer, 0, ptrDest, destBmp.Width * destBmp.Height)
destBmp.UnlockBits(destData)
source.Dispose()
Return destBmp
End Function
End Class
Steve T.
|
|
|
|
|
You might want to check out this[^] little article. For better performance, I'd also suggest writing this in C# because of the benefits of pointers. Something VB.NET doesn't support...
|
|
|
|
|
I got this figured out. The following code corrects the problem I was having. This is very useful for people who need to modify and save compressed Tiff images.
imageSize = destData.Stride * destData.Height
Dim destBuffer(imageSize) As Byte
Dim srcIDX As Integer = 0
Dim destIDX As Integer = 0
Dim DestValue As Byte = 0
Dim PixelValue As Integer = 0
Dim PixelTotal As Integer = 0
Try
For y As Integer = 0 To source.Height - 1
srcIDX = y * bmpData.Stride
destIDX = y * destData.Stride
PixelValue = 128
DestValue = 0
Dim x As Integer
Try
For x = 0 To source.Width - 1
PixelTotal = sourceBuffer(srcIDX + 1)
If PixelTotal > 128 Then DestValue += CByte(PixelValue)
If (PixelValue = 1) Then
destBuffer(destIDX) = DestValue
destIDX = destIDX + 1
DestValue = 0
PixelValue = 128
Else
PixelValue >>= 1
End If
srcIDX += 4
Next
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "")
End Try
If (PixelValue <> 128) Then
destBuffer(destIDX) = DestValue
End If
Next
Marshal.Copy(destBuffer, 0, ptrDest, imagesize)
Steve T.
ST
|
|
|
|