Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Brilliant! Your site is great...and saving me hours of time at work and making my boss think I am brilliant too! I also picked up on a thread that will potentially save us a lot of money in the future..."

Geography

Where in the world do Tek-Tips members come from?

Problem with PrintToPrinter on webapp using win 7.0 64 bit server

MzKitty (Programmer)
23 Feb 12 10:33
I am using vs2008 for my web application. Everything runs fine on the current win 7.0 32 bit server, but we are trying to upgrade to a 64 bit server with the newest version of Sql Server 2008 r2 and the crprinttoprinter is not working. I have installed the crystal runtimes for win 7.0 64 bit, but when the user clicks on print, it never sends the report to the printer queue. It acts like it printed, but it doesn't. Do I have to install the crystal runtime for win 7.0 64 bit on my development computer, so that when I compile and publish to the website it has the correct crystal dll's? The app works fine if the report selected goes to acrobat and you print from it, but not when I try to print directly to the server's default printer.

Thanks for any help you can give me.

Cathy
 
MarkSweetland (MIS)
23 Feb 12 15:52


Has the printer been installed on the new server (and set as default?)  


     Mark

"You guys pair up in groups of three, then line up in a circle."
- Bill Peterson, a Florida State football coach

MzKitty (Programmer)
23 Feb 12 15:58
Yes it has.  I finally got it to print, but I had to code my report as:

 crReport.PrintOptions.PrinterName = "\\Consumers_1\acct-laser"
 crReport.PrintToPrinter(1, False, 0, 0)

It should have gone directly to the default printer, but I had to tell it the network sharename. Thanks for replying to my thread.

Cathy

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close