473,396 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Printing single database entry in VB.net

I need help figuring out how to print a single entry from a database
using vb.net. I have written a program that will allow the user to
view/edit/add a recipe to an Access 2000 database. My problem is that once
the user gets the recipe they want on the screen, how can I put a "Print"
button on the screen to enable them to print that single recipe? Right now,
my head is spinning. I've been reading about API's and Crystal Reports, but
I can't figure out how to get the data from the screen to the report and
then the report to the printer.
I am very new to VB.net (started yesterday afternoon). I'm hoping
someone here can help me out with an example or point me in the right
direction.

Thanks,
Charlie
Jul 17 '05 #1
2 5515
if everything is on the form and visible - printForm
if not - use the Printer.print("stuffToPrint")

"Charlie" <no**@il.please> wrote in message
news:fQtRc.31877$cv5.30726@lakeread07...
I need help figuring out how to print a single entry from a database
using vb.net. I have written a program that will allow the user to
view/edit/add a recipe to an Access 2000 database. My problem is that once
the user gets the recipe they want on the screen, how can I put a "Print"
button on the screen to enable them to print that single recipe? Right now, my head is spinning. I've been reading about API's and Crystal Reports, but I can't figure out how to get the data from the screen to the report and
then the report to the printer.
I am very new to VB.net (started yesterday afternoon). I'm hoping
someone here can help me out with an example or point me in the right
direction.

Thanks,
Charlie

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004
Jul 17 '05 #2
Almost everybody in this newsgroup is using VB6 or lower. While you may
get a stray answer to VB.NET questions here, you should ask them in
newsgroups devoted exclusively to .NET programming. Look for newsgroups
with either the word "dotnet" or "vsnet" in their name.

For the microsoft news server, try these newsgroups...

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb
microsoft.public.vsnet.general

There are some others, but these should get you started.

Rick - MVP

"Charlie" <no**@il.please> wrote in message
news:fQtRc.31877$cv5.30726@lakeread07...
I need help figuring out how to print a single entry from a database using vb.net. I have written a program that will allow the user to
view/edit/add a recipe to an Access 2000 database. My problem is that once the user gets the recipe they want on the screen, how can I put a "Print" button on the screen to enable them to print that single recipe? Right now, my head is spinning. I've been reading about API's and Crystal Reports, but I can't figure out how to get the data from the screen to the report and then the report to the printer.
I am very new to VB.net (started yesterday afternoon). I'm hoping
someone here can help me out with an example or point me in the right
direction.

Thanks,
Charlie


Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Karl E. Taylor | last post by:
Could someone point me in the direction of a good example of coding report printing from database tables through VB? I have 5 tables that I need to run a report from. They are actually very...
4
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
1
by: Stephan und Arne | last post by:
Hello! Currently, we are programming a database (MS Access 2000) to put in questionnaires that include forms with several pages (tab control). The questionnaires should be printed like they...
5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
4
by: Rob T | last post by:
I have a small VB program that has a printing module...very simple....and works great. However, If I try to print to a generic printer, I get the following error: "The data area passed to a...
6
by: Bill | last post by:
Hi I am trying to get my listbox items to print if they stream past the one page mark. my code is working for one page of information (if the e.hasmorepages) is not there. But I am having...
2
by: Hexman | last post by:
Hello All, I'm now getting into the reporting phase of my application development. I need to print not only continuous page reports from a datasource (database, datagridview, listboxes, etc),...
1
by: billelev | last post by:
Here is some code that I have adapted slightly. It allows a report to be printed to a specific location. It works by calling SaveReportAsPDF and specifying the access report name, and the root...
1
by: rh0dium | last post by:
Hi all, Perhaps it's not supposed to work like this but I thought if you supplied a width to pprint it would nicely format a list to the width. KEYS = pp = pprint.PrettyPrinter(indent=2)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.