I try to get a file from a url and save it to my pc but I have problem with Greek characters. My code is:
Public Function OpenURL(ByVal strURL As String) As String
Dim client As New System.Net.WebClient()
Dim data As System.IO.Stream = client.OpenRead(strURL)
Dim reader...
I try to connect from my ASP page to an access database which is on a server on network.
My code is hereQ
set cn=server.CreateObject("ADODB.connection")
set rs=server.CreateObject("ADODB.recordset")
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=//Info/db_pepdym/pepdym.mdb"...
Ok i solve the problem with the security(i make a restart my server!).
I try to open a word:
objWordDoc = _
objWordApp.Documents.Open("C:\Inetpub\wwwroot\WebApplication1\Ypagvgh_g.doc")
'Run the macro
objWordDoc.filldoc("Hello!")
'Close the document and...
I want to open a new instance of word in my aspx page.
I try to open, execute a macro and download to the client.
First I use this code:
Dim objWordApp As Word.Application
Dim objWordDoc As Word.Document
'Create a new instance of Word
objWordApp = New...
It is not necessary to use set and let in aspx.
The right code is without comments:
objWordDoc = _
objWordApp.Documents.Open("C:\Inetpub\wwwroot\WebApplication1\Ypagvgh_g.doc")
...
This is the method into word:
Public Sub filldoc(p_id As String)
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
Dim constr
constr = "Provider=sqloledb;Server=MYSERVER;Database=MYDB;UID=MYUID;PWD=MYPWD;"
cn.Open constr
...(get the resultset and put the fields into regions inside the...
Yes the primary key is on a HTML page, but I have the other values in my SQL DB.
I found a solution. But i stil have problem.
I wrote a method in the word with a parameter that i need.
I want to open the word doc from aspx, run the method and after that download it from server.
I m sorry for my...
I want to construct a word document but I need some details into the body. These details are into a database (SQL Server) so i use VBA in the Document_open event.
I Use ADODB and after the connection to the SQLServer I could get the data but I need value as the primary key. Here is my code:
Dim...
Hi friends
I try to use a resultset in order to inser a row to a sqlserver database table (my connection based on JDBC ODBC driver) from a JSP page but i take an interval server error:
at sun.jdbc.odbc.JdbcOdbcResultSet.bindCol(JdbcOdbcResultSet.java:4506)
at...
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.