I designed a form simply holding a combo box, button & Datagrid, working well when executed from another erp application.Now i would like to get parameters from the application and pass on to the form. The parameter has to replace the value of Combobox value.
i have a windows form that has a web browser control.
i need to pass the value from the windows form to the html doc.
here is my problem.... can pass the value across to to a function in the html page but when i try to pass the same value to an image tag in the same document it does not read the value.
here is my code from the winform If e.Url.Equals(wb1.Url) Then wb1.Document.InvokeScript("fetchImage", New Object() {path}) End If
it passes through the variable 'path' to a function in the html doc.
heres the code for the html doc.... this part of the code works
function fetchImage(path) { var now = new Date(); var zm_image = new Image();
to solve my problem regarding dataset, crystal reports and exporting to pdf file? There are datas when i preview the crystal reports but when i export it to pdf viewer there's no data displayed. Here's my
DataOpen() cmd.CommandText = "Select * From AllDTR Where BIOID = '" & myuser & "' AND Date > '08/31/2009' ORDER by Date"
I have a form with 2 dateTimePickers and a SHOW button which gets data from an sql server database and displays it in a DataGridView. this works ok. I also have an EDIT button which brings up another form with textbox and comboBox controls displaying this one record. I want to be able to click in the DataGridView to select a Name and then click on the EDIT button to bring up the selected record. I don't know how to pass the ID as a parameter to this second form. Apart from that the EDIT button works, in the sense that I hard coded the ID (32 or 35 etc.) and it brings up the appropriate record. But how do i pass the selected ID. [Code]
I have a DataSet1.xsd This is connected to my access DB through OleDB. the DataSet Designer is stating that my column in my table is of type Double. Which is true when I verify it by opening Access and viewing that same column in my table.
I need to pass a parameter to my fill query so that on formload it populates the controls. I create the parameter in the dataset designer and give the paramter a name and specify the proper data type.
I edit the query to include the parameter.
on form load the generated code from the dataset designer inserts the fill command for the table adapter but doesn't include the parameter data, so I manually insert the data to be passed to the parameter.. This is where I get an error stating that datatype mismatched..
[code]This works fine and passes 8 parameters into the sysimp.bat file. The problem is if I try to pass in a value that has a space between the text then it will treat it as two parameters rater than one.So if P1 value is for example "Hello World" then when passed into the bat file it will assign "Hello" to P1 & "World" to P2. Is there a way to wrap the text in the parameters or should this be done in the .bat file?
I need to call a function in an unmanaged .dll written in C lang from vb.net. The function declaration looks like this [code]Now the behavior of this function is that it copies some data in argument "reply" and returns a numeric value which signals its pass/fail status. How do i pass it a string object so that it can copy data. Following is how i access this function.[code]When the call completes, returned status is absolutely fine but there is nothing in string "str". What is it that i am missing. I'm not sure about the string object that i am passing as argument.
I need to call a function in an unmanaged .dll written in C lang from vb.net. The function declaration looks like thisLONG _stdcall ReadInfo(char *reply);Now the behavior of this function is that it copies some data in argument "reply" and returns a numeric value which signals its pass/fail status. How do i pass it a string object so that it can copy data.Following is how i access this function.
i want to populate a crystal report based off a selected phone number, but i'm not sure how to pass the phone number to the report. I've tried the following, but other than that i'm lost:
' Dim pField As New CrystalDecisions.Shared.ParameterField() 'Dim disVal As New CrystalDecisions.Shared.ParameterDiscreteValue() 'Dim pFields As New CrystalDecisions.Shared.ParameterFields()
Code: Public Function ExecuteDataReaderSP( _ ByVal storedProcedureName As String, _ ByVal ParamArray arrParam() As SqlParameter) As SqlDataReader[code]....
I try various ways to pass the parameters, every time it return a different error.How is the correct way to pass those parameters?
I need to convert the following C# code to VB.NET:
public bool TryGetRewriteMatch(UrlContext url, out RedirectMatch match) { // NOTE: Normally this would use regular expression matches, cached database
[Code].....
However, I need to reference Url and ProductID in the function and I don't know how to pass them as parameters or get their values from the original function.
I have a situation where I need to programatically pass paramaters using VB through to my crystal report. I am using Visual Studio 2008 for my development.
Everything is working fine, but when I run the report I get a "Value cannot be Null" error. this is in the Crystal Reports Rorm Viewer.
I have a stored procedure with two input and one output parameters. I need to execute the stored procedure from VB 2008 code passing it two parameters and returning the output parameter. How might I go about doing this? I don't have how to do this. Newbie here.
I need to write a VB.Net Winform application that is called through Windows' context menu in Explorer and can take multiple parameters, where the final parameter is the full path to a file with spaces in it. I tried the following as parameters, to no avail:
I am using this code to pass multiple parameters but it works for only one parameter what should i do please please help me.
If TextBox1.Text = "" Or TextBox2.Text = "" Then MessageBox.Show("Please enter Date!", "ALI ENTERPRISES", MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub
Just have a quick question really, I am just making a simple application that allows me to check if a user exists in SQL here's my code
Public Function Check(ByVal textbox1, ByVal textbox2) As String Dim comm As New SqlCommand Dim conn As New SqlConnection Dim Adap As New SqlDataAdapter [Code] .....
And when it comes to the Comm line I get this error Operator '&' is not defined for string "Select * from Login where Userna" and type 'TextBox'. I've tried removing the "&" and well i cant figure it out.
I'm developing a form with usercontrols which have to be edited during disign.The project has a connectionstring in de my.settings.The usercontrol has a property which is also called connectionstring.Now, I want to pass the project connectionstring to the usercontrol connectionstring, when the usercontrol is dragged to a form. (All during design)
I create tabpages at runtime each having a flexgrid controls. I need to pass these flexgrids of each tabpage as a parameter to a function byref. This is the code .
The 3rd sub below (WorldMapViewer1_AreaMouseClick) handles "e.Area.Name" just fine. But I need my 1st sub ABC() to pick up the same "e.Area.Name" information and pass it to the 2nd sub LoadStateIndex() before anything is done in the 3rd sub.
Private Sub ABC() LoadStateIndex() End Sub Private Sub LoadStateIndex() [Code] .....
I have 2 forms, form1 and form2. Whenever user opens form2, I want form2 to get from form1 (which has a datagridview and filters), whatever the user filtered the datagridview by.
I have some code that is transforming the coordinates of a line.I want to keep the original coords and I thought passing the line ByVal would be the best way.The original VB6 code used a temporary variable so that the original coords were not updated.I'm confused as when the X & y coords of 'line' are changed 'MyLine' is also changed. I had assumed only 'line' would change and 'MyLine' would remain unchanged'.
Private Sub TransformSaveLine(ByVal MyLine As LineType) Dim P As Integer Dim line As LineType Dim x As Double