Two years later, different programmer, same question.
I can get the start and end page numbers from the common dialog box, but how do I tell CRViewer (using VB6 at the moment) what the PageFrom and PageTo are?
Either I'm losing my mind or I saw that CR (I'm at 8.5) has a native method to do Code39. I've spent the day in CR and this forum, so it has to be in one of them (assuming I'm not imagining things), but I can't find it in the help file or by searching tek-tips.
Anyone know what I'm talking...
Very rough VB code (from a working app):
Dim adors As ADODB.Recordset
Dim strsql As String
Set adors = New ADODB.Recordset
strsql = "SELECT [field name] from [table name]"
'use any field in the table
adors.Open strsql, conn.cnn, adOpenDynamic, adLockOptimistic ' conn has to be open...
If you're still looking for something simple - and if your start date is the first day of the current year - save yourself future work and make the start date the first day of the current year, instead of a fixed date.
Why not open the database in VBA, grab the data into an ADO recordset and send that recordset to the report? That way only VBA has to know about the user name and password.
>I did have to use the = "" option. Moving the ISNULL first didn't do anything.
That says that your field is blank, not null. The two aren't the same.
I've done the kind of thing you're looking to do. It takes A LOT more than an ActiveX component. In fact it takes a lot more than VB if you want the plate recognized before the owner has to replace it with a new one.
I know that's not the kind of answer you're looking for but optical...
The "source code" in the .exe file is assembly (actually machine language). The file can be disassembled and worked on, if you can get a good Windows assembly programmer. (It'll probably cost more that way [lots more] than having someone write the whole thing from scratch in VB.)...
Look in Project/References. Do you have:
Visual Basic For Applications
Visual Basic runtime objects and procedures
and
Visual Basic objects and procedures
all checked?
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.