Solved

Printing in VB4

Posted on 1998-07-05
6
214 Views
Last Modified: 2010-05-03
I have never used vb to print a report of any kind. I love R&R. However, I am using VB4 to access
Foxpro 2.x databases ( works great, but sadly not knowing how to maintain an index in this VB App
makes me limited as to how to present the data. Do I use Crystal, R&R with a custom control which I
have done) or is their simply some sample vb programs that I can try and figure out without lots of cryptic
code.

I do have a nice app, but I am just winging it. Sorry not an expert here, just triing to work it out.

Thanks!!!!!

-Scott-
0
Comment
Question by:scottward
6 Comments
 
LVL 4

Expert Comment

by:tomook
Comment Utility
You can write your own reports using only VB. Crystal Reports is a reasonable option. You might want to check out ActiveReports (www.datadynamics.com) for another report writer, very close to Access, if you know Access.
0
 

Expert Comment

by:staffiidba
Comment Utility
What kind of reports are you looking at doing ?
On the fly with snazy graphics, or just a plain line print of data.
Also - using DB structures, and wanting to keep ODBC compliant or just printing from flat files ???
0
 

Author Comment

by:scottward
Comment Utility
Using xbase files with the OpenRecordSet method, I have the data I just would
like to print it out, Nothing fancy, just looking for some examples. Thanks
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 9

Accepted Solution

by:
cymbolic earned 100 total points
Comment Utility
You can format your own lines using the printer object in VB, and if it's a simple report then it's almost like printing in DOS, a line at a time (codewise).  I have found that the VSView control from Videosoft is an improvement over the VB printer object, and provides a preview capability as well, which many users are expecting.  If doing much printing in VB of your own development, I would take a look at this control.  I have found Videosoft controls to be smaller, faster, and more reliable than most out there.  Sure, Crystal reports is an option, but be prepared to spend some learning curve time.
0
 
LVL 9

Expert Comment

by:cymbolic
Comment Utility
Here's how really straight forward it can be:

Msg = "This is printed on page"
Printer.Print Msg      ' Print bunches of these
Printer.NewPage      ' Send new page.
Printer.EndDoc      ' Printing is finished.
      
0
 

Author Comment

by:scottward
Comment Utility
Thanks!!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now