Solved

Crystal Report in WinXP

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
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 fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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 …

743 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

8 Experts available now in Live!

Get 1:1 Help Now