|
|
I used code from given link....but give error "view report is not member of frmOrder"
Dim Report As New frmorder
Dim TableName(0) As String
Dim QueryString(0) As String
TableName(0) = "TableName" 'Pass The Table That you used in the crystal Report
QueryString(0) = "SELECT * FROM TableName" ' Pass the Query
'ReportForm.MdiParent = MainForm 'Pass For Mdi True
Report.ViewReport("CrystalReport1.rpt", TableName, QueryString, )
|
|
|
|
|
Hi all,
I'm connecting to a SQL database and reading the recordset(Rs1) sequentially using method MoveNext. This is what the data looks like:
It starts reading the records fine, but crashes on 2 records which are close together in the table(input). I'm almost certan that the problem is not in my VB6 app, but something to do with the recordset, plus it doesnt seem to have anything to do with conversion.
Here is the whole error message:
Run-Time error '-2147467559(80004005)':
SQL0802 - Data conversion or data mapping error.
This happens in the line:
Rs1.Movenext
Please assist.
|
|
|
|
|
It will help us if you post the problematic snippet code and in addition give more info on the fields (of table in database) type where the code is crashing.
Shay Noy
|
|
|
|
|
Hi guys
im trying do an application wherein it watches other applications activities.
like for example my application will watch for any dialog box generated by the
application specified in the settings.
any idea on where should i start?
|
|
|
|
|
|
Your question is to vast. You should more specify what you need, because it is complicated to answer you for this kind of question.
Shay Noy
|
|
|
|
|
thanks for your reply
ok so let me make my question more specific.
the core of the program is to watch a specific application for message boxes, dialog boxes, or error message boxes.
then get the text from the message box then put it in a log file
then preferably simulate a click event on the OK button of that message box
lets say that an application generates that a message box saying that a file is missing
id like to get that message then save it into a log file.
hope this will explain clearly
|
|
|
|
|
|
nope the watcher will get the message in the message box then save it to a log file
thanks for the links, will check later
|
|
|
|
|
Is there a way that vb .net can help deploying a SQL database. I want a way I can create an install disc and have the user run the install disc and have the sql database with mdf files install.
Does anyone know a way to do this? I know I can run the sql database installer from the setup, but how do I get the mdf files to automatically attach and be usable?
I can't think of anything cool and nerdy to say.
|
|
|
|
|
You could write some TSQL to automate the creation of a database, logi, user, tables, views, indexes, etc, and have you clients execute the script.
Commands to research:
CREATE DATABASE 'MYNEWDATABASE'
CREATE LOGIN
CREATE USER
sp_addrolemember 'db_owner','MYNEWDATABASE'
|
|
|
|
|
I wanted to avoid scripts. Is there a way to attach a database using vb .net code?
I can't think of anything cool and nerdy to say.
|
|
|
|
|
Hmm, I must have misunderstood you. I thought you were looking for a solution to "deploy" a database. To me "deploying" a database at a client site means that they have a server waiting for you and a database needs to be created, schema created and populated, then your application can run.
If all you need to do is "attach", then why can't you just have your connection string stored in a configuration file and have it load at run time.
I must be missing something. "deploy" and "attach" have different meanings for us.
Maybe someone else can chime in a provide a soltion for you.
|
|
|
|
|
Can you help me with this? I can create database (mdf) now I need to attach it to the sql instance. How can I do that in vb .net?
I can't think of anything cool and nerdy to say.
|
|
|
|
|
Sorry, I've never worked with SQL Express, just SQL 2000, 2005 and Oracle.
|
|
|
|
|
SQL Express is SQL 2005 with some limitations on the number of connections
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
If you haven't already done so, download the SqlServer samples (theyr'e on CodePlex now not MS Download) here[^], select the *.zip file if you want to select where to put them, or the *.msi file if you want them installed to your SQLServer Directory.
There's a shedload of useful routines, mini applications and utilities in there.
The one you want isn't, from memory, but it is here on MSDN - Server.AttachDatabase Method[^]
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I have some code and I need that to be converted into c++.net
Can anybody suggest me how to do that.?
Thanks.
|
|
|
|
|
By hand, basically. C++/CLI is a bastard stepchild of .NET and C++, so I doubt there's tools to do it, like there is for C# and VB. However, if you can build your VB into a dll and call it from C++/CLI, that would work fine.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
or, for a small app, you might consider using Reflector to peek into the VB.NET class(es) and copy the MC++ equivalent code from there. This would loose local variable names and comments of course, but it does allow you to avoid a separate dll file.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I think there's also a plugin somewhere which allows you to do that with every file. I've used it before, but can't remember the name
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Thanks guys...I will try to work out onn that.
|
|
|
|
|
We produce a product for this (Instant C++ VB Edition). It has a free demo edition which will convert 100 lines at a time.
David Anton
http://www.tangiblesoftwaresolutions.com
Convert VB to C#, C++, or Java
Convert C# to VB, C++, or Java
Convert C++ to C#, VB, or Java
Convert Java to C#, C++, or VB
|
|
|
|