Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005-2015 : Writing Code
Message Icon Topic: Missing Report Parameters for .Net Post Reply Post New Topic
Author Message
JonQI
Newbie
Newbie
Avatar

Joined: 27 Sep 2016
Location: United Kingdom
Online Status: Offline
Posts: 1
Quote JonQI Replybullet Topic: Missing Report Parameters for .Net
    Posted: 29 Sep 2016 at 1:40am
I have moved from a c++ library version to Crystal Reports .Net components at Version=13.0.2000.0

I display a preview image of a report or opt to print the report, this also displays a preview of the report.

Both options still work (.net) when I add the known Parameters I need to supply whilst creating the document.

The c++ version handled parameters we did not supply by displaying the parameter entry dialog and went on to work fine once parameters were entered.

However, since going to .Net the 'preview' route still behaves the same way, but the 'print' route now displays the 'Missing parameter values' message.

Both options load parameters and set printer settings etc through the same code in the same order. The big difference, I guess, is that the print is done through CrystalDecisions.CrystalReports.Engine.ReportDocument's
.PrintToPrinter(printerSettings, pSettings, false, PrintLayout) method.

I am wondering if there is anything extra I have to do for the .Net version, perhaps the PrintToPrinter method does not do all all that is required to handle parameter data not yet provided.

I would appreciate any help on this. I'm not having any success finding examples of pertinent to this or any helpful documentation.

Thanks in advance.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3668
Quote hilfy Replybullet Posted: 03 Oct 2016 at 6:23am
As you've discovered, PrintToPrinter doesn't pull up the Parameter prompts. So, you will have to set the remaining parameters in your code by providing a screen so that the users can enter the remaining parameter values. Or you can remove the direct print functionality and force the users to use the preview which will prompt for the remaining parameters.

-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.