cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Printing from SAPBusinessObjects.WPF.Viewer

Former Member
0 Kudos

C# WPF application, Visual Studio 2010 ,CR version 13

everything except the print button works, I can export copy, etc. Just not print.

code to make Viewer

            reportViewer = new CrystalReportsViewer();

            reportViewer.Owner = GetWindow(this);

            reportViewer.Name = "CrystalReport";

            reportViewer.ShowLogo = false;

            reportViewer.ShowToolbar = true;

            reportViewer.ShowOpenFileButton = false;

            reportViewer.ViewerCore.ReportSource = report;

            reportViewer.ToggleSidePanel = SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind.None;

When I click the Print button on the toolbar it says "No printers are configured. Please configure a printer on the system before printing."

I have 4 network printers on my machine, and a default printer is selected.

How do I make it popup a printer dialog box for the user to select the desired printer/printer options/page options, and then print.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Any other ideas I can try?

former_member183750
Active Contributor
0 Kudos

Can you try another printer?

Is this a default printer? If not, can you try a default printer?

Using something like Process Monitor may not be bad idea to see if there are any permissions, etc., issues.

- Ludek

Former Member
0 Kudos

I am a bit confused on your reply, I am not able to select a printer when using the control. As soon as I click the print button it gives the No Printer configured error. I do have a default printer set up, and if I try to print from the IDE or the Crystal Reports IDE, v12 I think, I can select the printer or print right to the default. But using the "SAPBusinessObjects.WPF.Viewer" control in my Desktop WPF application I just get the No Printer Configured Error.

Process Monitor showed no permission error or anything, just my threads and connections to SQL

Thanks

Former Member
0 Kudos

You are welcome to use Goto meeting or Teamviewer or something else to see this in action to help troubleshoot if you like

former_member183750
Active Contributor
0 Kudos

You must have a default printer set up. Please see if the issue goes away once you do have any default printer setup (Can be MS XPS).

And a BTW.; Just an explanation how these things work. SCN is a community site not technical support. Thus we do not do Goto meeting or Teamviewer, etc. This would be reserved for paid phone incidents only. Phone incidents can be created here:

Crystal Single Case Technical Support - SAP Business Objects US Online Store | SAP Online Store

- Ludek

Former Member
0 Kudos

I have a default printer setup on the computer .... or am I supposed to setup a printer within the CrystalReportViewer control? If So how?

0 Kudos

Hi Bobby,

Your screen shot shows you have a network path to your printer, this doesn't mean you have a printer installed. You physically need to install a printer on your Local PC by adding a new Device ( assuming you are using Windows 7 or above.

So when you printed from the IDE click the printer name drop down list.

What do you see?

Here's mine....

Don

Former Member
0 Kudos

OOOOOHHHH ... that makes sense then .. I will get a local printer driver installed, now I see why Ludek mentioned XPS printer driver .... Thanks, will report back when Tested

Former Member
0 Kudos

Thanks guys, I am all fixed!!!

0 Kudos

Great... FYI, design the report using the printer or printer family your reports are going to be outputted to... makes it a lot easir to manage for others to use your reports.

Have fun

Don

Answers (1)

Answers (1)

0 Kudos

Hi Bobby,

Try this MS Kbase article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;184291

Try running your app under Administrator account, it will likely work also since the Admin has full access to all devices.

Don

Former Member
0 Kudos

Thanks for the reply!

I made the changes to the registry per the article mentioned, restarted the print spooler, and my user is the Admin on this machine. Still does not work.

Whats next?

former_member183750
Active Contributor
0 Kudos

Add the report to your project. Then use the CR designer to view the report in the .NET IDE. Then try to print from the designer. Does that work?

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Former Member
0 Kudos

Yes, I can print the report via the IDE, see attached pictures

Thanks!