473,320 Members | 2,073 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,320 software developers and data experts.

How to print a page/form from the web app in vb.net 2003

4
Hi,
Can i print a page or form from my web application? I am using vb.net 2003. If so pls send me the related info. If not pls tell me what are the work arounds. i heard that we can do printing in windows app. can i be able to connect to an windows app and which inturn will call an windows APl for printing. pls respond ASAP.

Thanks in Advance
Kiran.
Nov 7 '07 #1
5 1549
nateraaaa
663 Expert 512MB
Hi,
Can i print a page or form from my web application? I am using vb.net 2003. If so pls send me the related info. If not pls tell me what are the work arounds. i heard that we can do printing in windows app. can i be able to connect to an windows app and which inturn will call an windows APl for printing. pls respond ASAP.

Thanks in Advance
Kiran.
Please see this thread

Nathan
Nov 7 '07 #2
rmk108
4
Hi Nathan,
Thank you. but i want to print from the web application. I am using vb.net 2003.
Thanks
kiran
Please see this thread

Nathan
Nov 7 '07 #3
balabaster
797 Expert 512MB
Hi Nathan,
Thank you. but i want to print from the web application. I am using vb.net 2003.
Thanks
kiran
Er Nathan...that thread has nothing to do with printing web applications, I think you pasted the wrong reference...

nmk108: The way I do it is to invoke a web browser object to print the information:
Expand|Select|Wrap|Line Numbers
  1. Dim oWeb As New System.Windows.Forms.WebBrowser 
  2. oWeb.Document = MyHtmlDocument
  3. oWeb.Print()
  4.  
The only thing I haven't figured out is how to make it print to a printer other than the default printer configured for the system.
Nov 7 '07 #4
nateraaaa
663 Expert 512MB
Hi Nathan,
Thank you. but i want to print from the web application. I am using vb.net 2003.
Thanks
kiran
My mistake I saw the title in the Articles tab but didn't realize that was only for Windows apps. Sorry. Try this example

Nathan
Nov 7 '07 #5
Plater
7,872 Expert 4TB
My mistake I saw the title in the Articles tab but didn't realize that was only for Windows apps. Sorry. Try this example

Nathan
I found that same article months ago when I wanted to do this. Problem is, it's still text based. No *good* solution far as I've found.


If you want the page to print on the CLIENT side, look at javascripts window.print() method:
http://www.javascriptkit.com/howto/newtech2.shtml
Nov 7 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Jonathan Smith | last post by:
Hi In order to make it easier for my colleagues to write their school reports I thought I might attempt to write a (simple) program. At the moment I am working mentally through the steps I would...
6
by: Shyguy | last post by:
I want to create two buttons on a form. One would allow the user to Copy the contents of the current records memo field, the other would allow them to print. I set up a report based on the memo...
3
by: sea | last post by:
I need to be able to print the current form because the form has an embedded object of a .gif file, so report will not work -- does anyone know the way to do this? I tried some code, not sure what...
3
by: ellenricca | last post by:
Hi, I have an Access 2003 db that is used to enter parking ticket info when the ticket is paid. The data is entered via form, and on that form is a command button that prints the Receipt Report...
5
by: Raman | last post by:
Hello friends, I want to print an ID card. I have one Windows Form that contains front and back side. The printer is printing both front and back side at a time. I am trying to send both sides...
6
by: JonC | last post by:
I am developing an Access database and need to be able to print a form with various selections made as it appears on screen. The standard way of doing this would be to create a report based on the...
2
by: prophet | last post by:
how do I create a print button that is on my index page that prints my target page (and only the target page) I tried <INPUT onclick=window.print(); type=button value="Print This Page"...
1
by: Kbalz | last post by:
Having a really hard time finding solid examples on deploying a CR .NET applcation on my intranet. I'll explain what I've done so far, and toward the bottom is where I can't print using the report...
12
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.