Solved

Printing Crystal Reports from Visual Basic while controlling printer settings

Posted on 2007-11-15
6
1,519 Views
Last Modified: 2012-08-13
We have several Crystal Reports that need to be printed out from different trays and then stapled together. We are using Visual Basic 6, Crystal Reports 11 and a Ricoh multifunction printer.

Is using PJL an option, how would you use this with crystal reports. I was not able to find a good way to print the crystal report to a file to then add PJL commands.

We also purchased the API from ricoh, unfortunately it does not support this printer. Even so If I set the printer on one that is supported and then print the crystal report the settings are not used for the CR (The API works by setting WINAP).

Any help or suggestions?
0
Comment
Question by:esiexc
  • 2
  • 2
6 Comments
 
LVL 22

Expert Comment

by:Ido Millet
Comment Utility
Are you willing to let go of the automated stapling requirement?
0
 

Author Comment

by:esiexc
Comment Utility
We need as many of the requirements done as possible, so if there is no way to do the stapling I would still be interested in how to accomplish the tray control.
0
 
LVL 22

Accepted Solution

by:
Ido Millet earned 500 total points
Comment Utility
If the stapling requirement is removed, you can easily send each report to a different printer tray.

If you need to split the printout of a single report across different paper trays (1st page to Tray 1, Pages 2 to 3 to Tray 3, ...), Consider a 3rd-party tool as a solution (for a list of such tools, see http://www.kenhamady.com/bookmarks.html).  My Visual CUT software provides two approaches that allow you to automate such a process.  

- Ido
0
 

Author Comment

by:esiexc
Comment Utility
Thanks, If I cannot find a way to staple I will look into that.
0
 
LVL 1

Expert Comment

by:Computer101
Comment Utility
Forced accept.

Computer101
EE Admin
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now