Solved

Auto export and print crystal report within access

Posted on 2010-11-09
10
536 Views
Last Modified: 2012-05-10
At present we use an Access 2003 report to print a drivers Load Sheet, when the "Print Load Sheet" button is clicked on a form a macro runs which prints the Load Sheet report, then runs a few queries to flag it as printed (puts a tick in a field named "Printed" on a local access table) and then mails the Load Sheet details to the courier.

Ideally we need to replicate this behaviour but using a crystal report instead of access report. The back-end database has changed and re-writing the access report has proved to be impractical.

We are using Access 2003 and Crystal 2008 (for SAP Business One).

Would really appreciate any help on this, I have managed to get a crystal report version of the Load Sheet report to open from access by using the FollowHyperLink method but obviously this only opens the report.

If I could somehow open the report and automatically print and then save it then this would be ideal but I understand that this may not be possible. any help appreciated
0
Comment
Question by:kevin1983
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 166 total points
ID: 34093553
In most cases, you use an activex control to manage this. You drop the control on the Access form, and use that form to manage your CR actions. However, I'm not sure that CR 2008 ships with a COM control (I'm pretty sure it doesn't), so you're left with building an external utility to manage this. You could use one of the .NET languages to do this, then call that utility from Access.
0
 

Author Comment

by:kevin1983
ID: 34093649
ok that sounds likely to be to complex for what we will be able to do ourselves, and we are not .NET programmers.

The other option I thought might be possible was if the user manaully exports the report from crystal but if crystal reports is able to set a flag within an access table that would be good if possible?
0
 
LVL 22

Accepted Solution

by:
Ido Millet earned 167 total points
ID: 34093783
Consider a Crystal Reports Desktop Scheduling tool (for a list of such tools, see http://www.kenhamady.com/bookmarks.html) as a solution.  At least one of these tools allows you to trigger (via a Shell() function call from MS Access vba code) and pass parameters to a process of running a Crystal report, exporting, emailing, etc.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:kevin1983
ID: 34094032
ok, thanks im having a look on that weblink
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34095996
I agree.

You will need to use an application to call the reports.  As stated bove there is no .COM supprt in CR2008.  You will need to build a .net application that does the print and update or use a third-party tool.

You might also consider "downgrading" to CR XI R2.  It can be called from an Access application.

mlmcc
0
 

Author Comment

by:kevin1983
ID: 34098103
ok, is there a particular third party application anyone would recommend ?, (ideally free app)

IdoMillet: have you tired any on the programmes on the link you provided?-im not sure which one to try out.


sounds like downgrading to CR XI R2. could be an option if we are able source and to get hold of a license to use that version.
0
 
LVL 22

Expert Comment

by:Ido Millet
ID: 34103330
Sorry, forum rules don't allow me to name the specific software package.
0
 

Author Comment

by:kevin1983
ID: 34103520
Really those are the rules?, thats strange- could you suggest a couple to try instead if possible?
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 167 total points
ID: 34105614
Ido wrote several of the applications being recommended.  Since he sells them he is not allowed to recommend them directly since there is a rule against advertising.

here is the link to his site
http://www.milletsoftware.com/index.htm

mlmcc
0
 

Author Closing Comment

by:kevin1983
ID: 34110495
Thanks all experts for your help.

ill try out a few third party tools-looks like one of them will do the trick.

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question