Solved

Crystal Report in WinXP

Posted on 2004-07-31
2
1,790 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
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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

809 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