When I wrote up a module to display the Windows Print Dialog box (to
allow the user to select a specific printer on the network) instead of
the DoCmd.OpenReport the function worked fine. I packaged it up in a
*.mde file to send to the client and suddenly an error popped up when
I ran the function: "The command or action 'Print" isn't available
now."
My code is as follows:
<snip>
Function PrntDlg(ReportName As String)
'This function allow user to select printer with _
standard windows dialog box
'Selects report without actually opening in preview mode first
DoCmd.SelectObject acReport, ReportName, True
'Call dialog box
DoCmd.RunCommand acCmdPrint
End Function
</snip>
I think that the problem might be that I can't select any object from
the database window in a *.mde.
A) Does it make sense that this is the problem?
B) What could I do to get around the issue?
Thanks,
Yoda 4 4919
On 29 Sep 2003 18:43:58 -0700 in comp.databases.ms-access, ys*******@hotmail.com (Stubble) wrote: When I wrote up a module to display the Windows Print Dialog box (to allow the user to select a specific printer on the network) instead of the DoCmd.OpenReport the function worked fine. I packaged it up in a *.mde file to send to the client and suddenly an error popped up when I ran the function: "The command or action 'Print" isn't available now."
My code is as follows: <snip> Function PrntDlg(ReportName As String) 'This function allow user to select printer with _ standard windows dialog box
'Selects report without actually opening in preview mode first DoCmd.SelectObject acReport, ReportName, True 'Call dialog box DoCmd.RunCommand acCmdPrint
End Function
</snip>
I think that the problem might be that I can't select any object from the database window in a *.mde.
A) Does it make sense that this is the problem?
B) What could I do to get around the issue?
Thanks, Yoda
Another method you need. Using the .OpenReport method I see for you.
--
A)bort, R)etry, I)nfluence with large hammer.
I suspect you may be right about the problem with your current method. It is possible to
print the report using the DoCmd.OpenReport method without previewing the report. The
acNormal view mode should send the report straight to the printer.
--
Wayne Morgan
"Stubble" <ys*******@hotmail.com> wrote in message
news:37**************************@posting.google.c om... When I wrote up a module to display the Windows Print Dialog box (to allow the user to select a specific printer on the network) instead of the DoCmd.OpenReport the function worked fine. I packaged it up in a *.mde file to send to the client and suddenly an error popped up when I ran the function: "The command or action 'Print" isn't available now."
My code is as follows: <snip> Function PrntDlg(ReportName As String) 'This function allow user to select printer with _ standard windows dialog box
'Selects report without actually opening in preview mode first DoCmd.SelectObject acReport, ReportName, True 'Call dialog box DoCmd.RunCommand acCmdPrint
End Function
</snip>
I think that the problem might be that I can't select any object from the database window in a *.mde.
A) Does it make sense that this is the problem?
B) What could I do to get around the issue?
Thanks, Yoda
Wayne,
The problem is that the client wants to be able to select which
printer to send the report to. So I am trying to use the Windows Print
Dialogue.
Thanks,
Yoda
"Wayne Morgan" <co***************************@hotmail.com> wrote in message news:<9S******************@newssvr31.news.prodigy. com>... I suspect you may be right about the problem with your current method. It is possible to print the report using the DoCmd.OpenReport method without previewing the report. The acNormal view mode should send the report straight to the printer.
-- Wayne Morgan
See if either of these provide more information for you. The link at the bottom of the
second one will take you to a very good resource. http://www.mvps.org/access/reports/rpt0009.htm http://support.microsoft.com/default...roduct=acc2000
--
Wayne Morgan
"Stubble" <ys*******@hotmail.com> wrote in message
news:37**************************@posting.google.c om... Wayne,
The problem is that the client wants to be able to select which printer to send the report to. So I am trying to use the Windows Print Dialogue. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: yensao |
last post by:
Hi,
I have a hard time to understand difference and similarities between
Relational database model and the Object-Oriented model. Can somebody
help me with this?
Thank you in advance.
...
|
by: b83503104 |
last post by:
Hi,
Can someone tell me the difference between single quote and double
quote?
Thanks
|
by: Frank |
last post by:
For my website i would like to display the age of my son in years,
months, days and hours.
For now i manage to get a result for totals. Like the total number of
days.
This is the beginning:
...
|
by: Rich |
last post by:
I was considering C# for developing a scientific application, but I have
noticed a ~30% difference between VC++ .NET and C# on the same machine,
under identical conditions:
double a = 0,b = 0, c...
|
by: jamesyreid |
last post by:
Hi,
I'm really sorry to post this as I know it must have been asked
countless times before, but I can't find an answer anywhere.
Does anyone have a snippet of JavaScript code I could borrow...
|
by: bbawa1 |
last post by:
Hi,
I have a table which has a field ItemsReceived of type datetime. I
have a grid view which has two columns.
In first column i have to show the data from field ItemsReceived and
in second...
|
by: Petronius |
last post by:
Hallo, does anyone have an idea how to implement difference lists in
Javascript?
Thanks allot in advance
|
by: Julius |
last post by:
Hej dudes,
I need to calc the difference between two timestamps / dates ...
For example what i need to calculate:
Date 1: 2007.11.06 - 20:13:04
Date 2: 2007.11.07 - 21:13:04
Difference:...
|
by: viki1967 |
last post by:
Hi all!
This new forum its great! :)
Congratulations !!!
My answer: why this my code not working?
Nothing error but not work the difference.... :
<html>
|
by: cmb3587 |
last post by:
I have two arrays and I'm trying to create a 3rd array that is the difference between the two arrays
Ex:
arrayA: 3 5 8 9
arrayB: 3 4 6 9
difference of A-B: 5 8
however, my...
|
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...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
| |