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

Print and PrintPreview

Hi
I want to make "PrintPreview" and "Print" my displayed form to Pdf.
i am using Ms_Access for Coding.
I have taken Two Button for That but I dont Know code i should Use.
Pls Help.
Platgform: Windows Xp
code using : MS_ACCESS
abhishek
BOMBAY INDIA
Sep 17 '08 #1
1 1491
knix
3
Try this code in your command button:

DoCmd.OpenReport "(name of the report)", acViewPreview
Sep 17 '08 #2

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

Similar topics

1
by: E. W via DotNetMonster.com | last post by:
Hi all, is it possible to configure a printpreview control so that I am able to print selected pages (for example 12-20 like by Word)? Thanks ew -- Message posted via DotNetMonster.com...
2
by: AG | last post by:
I am using PrintPreview control in my VB.NET application. But when we display print preview, only the last document is shown, and I cannot see five or six documents there. Seems like as soon...
1
by: cartist03 | last post by:
I am using printpreview dialog box control in my VB project. I can see the multipage document in preview but when I click on the Print icon in the dialog window, I get a blank page ! Does anyone...
1
by: ucasesoftware | last post by:
I have just a problem to margin the Datagrid... Could someone help me ? the datragid always print in the top LEFT #Region " Impression " 'Déclaration Private PrintPageSettings As New...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
0
by: Wilfredo Rivera | last post by:
Hello: In VB.net 2003. When running this application the document to be printed looks the way it's supposed to but when printed is not how it looked. For example; the program it's supposed to run...
3
by: Fareast Adam | last post by:
Here is the code; <head> <script> function printpreview() { var OLECMDID = 7; /* OLECMDID values: * 6 - print
0
by: DhanyaSandeep | last post by:
Hello, I want to print a file by opening it from a winform.Which tool should i use?printdocument/printpreview/printpreview dialog.please suggest me a solution...thank you ...
7
by: Fareast Adam | last post by:
I try to hide the print preview button that inside <div id="button"> when previewing the page. But the the problem happened the button is always hidden after i closing the preview page. Anyone have...
5
by: maminx | last post by:
hello all, i want to call window print preview (in browser, File - Print Preview) by javascript, this is the code function printpreview() { var OLECMDID = 7; /* OLECMDID values: * 6...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
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...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.