Solved

Crystal Report in WinXP

Posted on 2004-07-31
2
1,806 Views
Last Modified: 2012-05-05
Hello Everybody

I Used Crystal Report in Win 98 and noe I want to change my platform to WinXP.

my program was something like this.

  Dim P As Printer, L As Printer
  For Each P In Printers
 if someconditionoccurs then
        L.PrinterDriver = P.DriverName
        L.PrinterName = P.DeviceName
        L.PrinterPort = P.Port
 endif


and somewhere else in my program

     CR1.Destination = crptToPrinter
     CR1.PrinterDriver = L.PrinterDriver
     CR1.PrinterName = L.PrinterName
     CR1.PrinterPort = L.PrinterPort
     CR1.Action = 1

this worked in Win98 but now in WinXP I have two problems.
1: Driver for all printers is "winspool"
2: There is something wrong with name of printers
    as after calling "Action" error code 20530 with message
"Invalid printer specified" is shown.

Can anybody help me? I use shared printers and I dont know how can I manage it.

Thanks for your attention.
0
Comment
Question by:Parsi
[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
2 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 11688641
It looks like you are using the OCX to display the report.  This means you are using CR8 or earlier.  

Since the OCX hasn't been updated since CR6 and CR9 is the first version supported on Win XP, I suspect you will have trouble doing what you are trying to do.

What version of CR?  If it is CR8 or 8.5 I would recommend you use the RDC to display the reports.

mlmcc
0
 
LVL 2

Accepted Solution

by:
mysdaao earned 500 total points
ID: 11694225
Sounds like the wrong printer settings (PrinterDriver, PrinterName, PrinterPort) are being used.  Try these articles on the problem.

Selecting a Printer and setting Print Options at Runtime
http://support.businessobjects.com/library/kbase/articles/c2002399.asp

"Automation Error" Using the .SelectPrinter method of Automation Server
http://support.businessobjects.com/library/kbase/articles/c2000983.asp

Error: '20513 - Invalid Printer Specified' using the 'SelectPrinter' method
http://support.businessobjects.com/library/kbase/articles/c2008673.asp
0

Featured Post

Technology Partners: 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!

Question has a verified solution.

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

Suggested Solutions

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.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…

739 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