473,399 Members | 4,254 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,399 software developers and data experts.

Printing report from front end - no menu...

64 64KB
Hi,

I have a split database (back end on server and front end on local machines.

this works perfectly. However, i have a printing problem.

I have a form on which the user can specify a few field on which reports are generated. Also, there are a few buttons to open the required report (in printview).

On my system (full access program) i can print the reports when i right-click the report and choose "print"

However, on the local machines (not full access functionality) my people can run the report but it is not possible to right click the report to print it.

any ideas ?
berst regards,
Jean-Pierre
Mar 26 '13 #1
12 4406
zmbd
5,501 Expert Mod 4TB
However, on the local machines (not full access functionality) my people can run the report but it is not possible to right click the report to print it.
What exactly do you mean by "not full..." how are your end users running your front-end.
Mar 26 '13 #2
Pierkes
64 64KB
Hi,

the users have a runtime version of ms access.

Does this answer your question?

Regards,
Pierre
Mar 27 '13 #3
TheSmileyCoder
2,322 Expert Mod 2GB
Well testing in Access 2010, if I run Access as runtime, and open a report in print preview then yes, I cannot right click to print, but the ribbon is available, allowing me to print.

Maybe there are important details you have forgotten to include in your question?
Mar 27 '13 #4
Seth Schrock
2,965 Expert 2GB
@Smiley Are you sure you don't have a custom ribbon on your report? By default runtime disables all the ribbons and only custom ones appear.

What I normally do is open the report in report view and have a print button in the header of the report that has its Display When property get to screen only so that when it prints it doesn't include the button. I have played with custom ribbons, but for some reason I can't get rid of the Adobe ribbon tab so I have opted for the button option.
Mar 27 '13 #5
TheSmileyCoder
2,322 Expert Mod 2GB
First off I simulated runtime by the following command:
Expand|Select|Wrap|Line Numbers
  1. "C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE" "C:\ExampleRuntime.mdb" /runtime
Note the /runtime

I clearly see the ribbon (non custom) in this clean blank database I created for the purpose. I don't know whether making mdb into a mde first would have any effect. I wanted to attach a screenshot, but seems Bytes have hickups on that account. Keeps saying its not a valid image file...So I have attached as zip. ExamplePrintPreview2010RuntimeSimulated.zip
Mar 28 '13 #6
TheSmileyCoder
2,322 Expert Mod 2GB
Well I get the same results with a ACCDB and with a ACCDE using simulated runtime in Access 2010.
Mar 28 '13 #7
Pierkes
64 64KB
Hi Seth schrock,

I have no ribbons, you are right about that.

I tried creating a button for the report and it works...but...
It print the report for alll the records in the database and not just the current record.

For your info:

- The report is opened by clicking on a button on a split form (which uses filtered data)
- The report is opened using;
Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunCommand acCmdSaveRecord
  2. DoCmd.OpenReport "rap_One_Page_Summary", acViewPreview, , "[ID_traject] = " & [ID_traject]
I then get the report that i want to print.
Any ideas on the code on the report print button ?

Thanks,
Pierre
Mar 29 '13 #8
Seth Schrock
2,965 Expert 2GB
The print button will print all the records that the report has. You have filtered the report when you opened it with the "[ID_traject] = " & [ID_traject]. I'm guessing that the field [ID_traject] is the primary key field. If so, then there can only be one record that matches that criteria. So to print all the records, you would have to remove that criteria.
Mar 29 '13 #9
Pierkes
64 64KB
Hi Seth Schrock,

Thanks for your reply but the the thing is that when i press print on my report (which is then in acViewPreview mode, it will print ALL the records. This is not what i want.

I would like the report to print only the record that is filtered, so the current record.

Any ideas ?
Thanks,
Pierre
Apr 2 '13 #10
Seth Schrock
2,965 Expert 2GB
Sorry, I misread your previous post. What code are you using to print the report?
Apr 2 '13 #11
Pierkes
64 64KB
Hi seth Schrock,

I have tried a few things more, but still have problems...

Here's what i've done:
I have a form on which the user can select a few items from drop down lists. These items will filter the query in the "criterium" section in the qyery.

For example: Ther is a dropdwon list called: Result
The options within it are : Closed;Open;Lost

So the user will select "Closed" for example.
In the criterium section i have:

Expand|Select|Wrap|Line Numbers
  1. Like [Forms]![frm_rapporten].[cmb_rap_result] & "*"
This to make sure the query is filtered on the result OR, if nothing is choosen, it wil list all records.

Like the previous combobox, i have a few more on the form.


Here's the code on the form to display the report (by clicking on a button);

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenReport "rap_pijplijn_per_am_v", acViewReport
It will then display the correct report.

On the report i have a print button button. On the "on click" event i have the following code;

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenReport "rap_pijplijn_per_am", acViewNormal, , acNormal
It wil print the report, however, without any data.

can you please help ?
Thanks,

Pierre
Apr 2 '13 #12
Seth Schrock
2,965 Expert 2GB
In your button's OnClick event replace what you have with
Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunCommand acCmdPrint
This will print what is already open.
Apr 2 '13 #13

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

Similar topics

5
by: AstronusX | last post by:
Hi, I'm looking for good printing/reporting tool that customize base on user need, like add more columns to report(design at run-time) for the products that we make? Any recommendation?? Thank...
2
by: Xiphias | last post by:
Hi, Im trying to change the color of a text box on a report that im printing from a form. On the form I got a check box that has to tricker the color of that textbox on the printed report....
1
by: David B | last post by:
I have an app used by a number of single users. For printing invoices and statements some users like to use their own headed paper while others are happy with the header generated from the user...
0
by: martinjeffreys | last post by:
Hi I've a number of Access2002 reports with embedded bitmaps. If the printer print quality is set to 'Normal' all prints OK - if 'Fast' only the text appears. I've tried setting the default...
1
by: watcher | last post by:
hi, today,i watched a tv program,and i found that we can create a Report Project and use SQL Server Seb Report Server.But in my New Project menu,i could not found out that menu,why?and how to add...
5
by: Marks | last post by:
Right I'm don't feel so nervous tackling VB as much now but basic stuff I'm great with so the next part of my script is: 1. Having a Front Menu. When you enter the number 1 in a textfield it...
2
by: PrakashN | last post by:
Hai, I m Using Vb.Net and Crystall 8.5.I can assign the PrinterName to the Report, I Want to set Printoption to print front and Back of a page .Can any one help me what property i have to...
1
bre1603
by: bre1603 | last post by:
I have a multi-user database in Access 2007. One user is having trouble printing a report in print preview. The report is opened from a form using a command button. Both the form and report seem...
0
by: ManSam | last post by:
I have a picture box that is saved to a picture file ".bmp". I inserted the picture in Crystal Report. But when printing, it's not refreshing the new image that's saved in the same file. How can I do...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
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,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.