Solved

Crystal Report in WinXP

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to update exe applicatio from internet ? 6 87
Advice on Xojo as a development tool over VB. 4 72
Advice in Xamarin 21 97
T-SQL:  Sigh---Boy, this is fun.... 12 57
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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…
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…

821 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