Parameter Prompt when print only

In the past we used the RDC to run reports within our application. When a user selects a report to run they have the option to preview or print it. No matter which option they chose the Crystal Parameter prompt screen would be displayed so they could enter the appropriate values. Then of course the report would run and either be printed directly to the printer (if chose print) or displayed in a viewer (if chose preview). We have recently switched to using CR2008. We have the preview working like before but not the print option. I'm thinking we are just missing something. If we choose print then the parameter prompt screen from crystal never shows and therefore the user is unable to enter values and report fails. How do you get crystal display the parameter prompt screen when not using a viewer?

There is no RDC in CR 2008 so I assume you are using VS 2008 and CR .NET Assemblies.
Look at these samples for more options:
Root Page
http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsHome
Enterprise Samples (including managed and unmanaged ras)
http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
Non-Enterprise Samples
http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
Exporting Samples (RAS)
http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
Also, use the ReportClientDocument.Refresh before making changes to the report to clear reports with saved data and then it will prompt for parameters.
Thank you
Don

Similar Messages

  • How can avoid the  problem of Parameter Prompting when I submitting ?

    I am developing web application in visual studio 2008 in csharp.How can avoid the issue or problem of  Parameter Prompting when I send parameters programaticaly or dyanmicaly?  I am sending the values from .net web form to crystal report but it is still asking for parameters. so when i submit second time that is when the reports is being genereated. How can i solve this problem. Please help. The code Iam using is below.
       1. using System; 
       2. using System.Collections; 
       3. using System.Configuration; 
       4. using System.Data; 
       5. using System.Linq; 
       6. using System.Web; 
       7. using System.Web.Security; 
       8. using System.Web.UI; 
       9. using System.Web.UI.HtmlControls; 
      10. using System.Web.UI.WebControls; 
      11. using System.Web.UI.WebControls.WebParts; 
      12. using System.Xml.Linq; 
      13. using System.Data.OleDb; 
      14. using System.Data.OracleClient; 
      15. using CrystalDecisions.Shared; 
      16. using CrystalDecisions.CrystalReports.Engine; 
      17. using CrystalDecisions.Web; 
      18.  
      19.  
      20. public partial class OracleReport : System.Web.UI.Page 
      21. { 
      22.     CrystalReportViewer crViewer = new CrystalReportViewer(); 
      23.     //CrystalReportSource crsource = new CrystalReportSource(); 
      24.     int nItemId; 
      25.  
      26.     protected void Page_Load(object sender, EventArgs e) 
      27.     { 
      28.         //Database Connection 
      29.         ConnectionInfo ConnInfo = new ConnectionInfo(); 
      30.         { 
      31.             ConnInfo.ServerName = "127.0.0.1"; 
      32.             ConnInfo.DatabaseName = "Xcodf"; 
      33.             ConnInfo.UserID = "HR777"; 
      34.             ConnInfo.Password = "zghshshs"; 
      35.         } 
      36.         // For Each  Logon  parameters 
      37.         foreach (TableLogOnInfo cnInfo in this.CrystalReportViewer1.LogOnInfo) 
      38.         { 
      39.             cnInfo.ConnectionInfo = ConnInfo; 
      40.  
      41.         } 
      42.  
      43.  
      44.  
      45.  
      46.  
      47.  
      48.         //Declaring varibles 
      49.          nItemId = int.Parse(Request.QueryString.Get("ItemId")); 
      50.         //string strStartDate = Request.QueryString.Get("StartDate"); 
      51.         //int nItemId = 20; 
      52.         string strStartDate = "23-JUL-2010"; 
      53.  
      54.         // object declration 
      55.         CrystalDecisions.CrystalReports.Engine.Database crDatabase; 
      56.         CrystalDecisions.CrystalReports.Engine.Table crTable; 
      57.  
      58.  
      59.         TableLogOnInfo dbConn = new TableLogOnInfo(); 
      60.  
      61.         // new report document object 
      62.         ReportDocument oRpt = new ReportDocument(); 
      63.  
      64.         // loading the ItemReport in report document 
      65.         oRpt.Load("C:
    Inetpub
    wwwroot
    cryreport
    CrystalReport1.rpt"); 
      66.  
      67.         // getting the database, the table and the LogOnInfo object which holds login onformation 
      68.         crDatabase = oRpt.Database; 
      69.  
      70.         // getting the table in an object array of one item 
      71.         object[] arrTables = new object[1]; 
      72.         crDatabase.Tables.CopyTo(arrTables, 0); 
      73.  
      74.         // assigning the first item of array to crTable by downcasting the object to Table 
      75.         crTable = (CrystalDecisions.CrystalReports.Engine.Table)arrTables[0]; 
      76.  
      77.         dbConn = crTable.LogOnInfo; 
      78.  
      79.         // setting values 
      80.         dbConn.ConnectionInfo.DatabaseName = "Xcodf"; 
      81.         dbConn.ConnectionInfo.ServerName = "127.0.0.1"; 
      82.         dbConn.ConnectionInfo.UserID = "HR777"; 
      83.         dbConn.ConnectionInfo.Password = "zghshshs"; 
      84.  
      85.         // applying login info to the table object 
      86.         crTable.ApplyLogOnInfo(dbConn); 
      87.  
      88.  
      89.  
      90.  
      91.  
      92.  
      93.         crViewer.RefreshReport(); 
      94.          
      95.                 // defining report source 
      96.         crViewer.ReportSource = oRpt; 
      97.         //CrystalReportSource1.Report = oRpt; 
      98.          
      99.         // so uptill now we have created everything 
    100.         // what remains is to pass parameters to our report, so it 
    101.         // shows only selected records. so calling a method to set 
    102.         // those parameters. 
    103.      setReportParameters();  
    104.     } 
    105.  
    106.     private void setReportParameters() 
    107.     { 
    108.       
    109.         // all the parameter fields will be added to this collection 
    110.         ParameterFields paramFields = new ParameterFields(); 
    111.          //ParameterFieldDefinitions ParaLocationContainer = new ParameterFieldDefinitions(); 
    112.        //ParameterFieldDefinition ParaLocation = new ParameterFieldDefinition(); 
    113.         
    114.         // the parameter fields to be sent to the report 
    115.         ParameterField pfItemId = new ParameterField(); 
    116.         //ParameterField pfStartDate = new ParameterField(); 
    117.         //ParameterField pfEndDate = new ParameterField(); 
    118.  
    119.         // setting the name of parameter fields with wich they will be recieved in report 
    120.        
    121.         pfItemId.ParameterFieldName = "RegionID"; 
    122.  
    123.         //pfStartDate.ParameterFieldName = "StartDate"; 
    124.         //pfEndDate.ParameterFieldName = "EndDate"; 
    125.  
    126.         // the above declared parameter fields accept values as discrete objects 
    127.         // so declaring discrete objects 
    128.         ParameterDiscreteValue dcItemId = new ParameterDiscreteValue(); 
    129.         //ParameterDiscreteValue dcStartDate = new ParameterDiscreteValue(); 
    130.         //ParameterDiscreteValue dcEndDate = new ParameterDiscreteValue(); 
    131.  
    132.         // setting the values of discrete objects 
    133.          
    134.  
    135.           dcItemId.Value = nItemId; 
    136.          
    137.         //dcStartDate.Value = DateTime.Parse(strStartDate); 
    138.         //dcEndDate.Value = DateTime.Parse(strEndDate); 
    139.          
    140.         // now adding these discrete values to parameters 
    141.           //paramField.HasCurrentValue = true; 
    142.  
    143.        
    144.  
    145.           //pfItemId.CurrentValues.Clear(); 
    146.          int valueIDD = int.Parse(Request.QueryString.Get("ItemId").ToString()); 
    147.           pfItemId.Name = valueIDD.ToString();  
    148.            
    149.         pfItemId.CurrentValues.Add(dcItemId); 
    150.         //ParaLocation.ApplyCurrentValues; 
    151.         pfItemId.HasCurrentValue = true; 
    152.         
    153.         //pfStartDate.CurrentValues.Add(dcStartDate); 
    154.         //pfEndDate.CurrentValues.Add(dcEndDate); 
    155.  
    156.         // now adding all these parameter fields to the parameter collection 
    157.         paramFields.Add(pfItemId); 
    158.          
    159.         //paramFields.Add(pfStartDate); 
    160.         //paramFields.Add(pfEndDate); 
    161.         ///////////////////// 
    162.         //Formula from Crystal 
    163.        //crViewer.SelectionFormula = "{COUNTRIES.REGION_ID} = " + int.Parse(Request.QueryString.Get("ItemId")) + ""; 
    164.         crViewer.RefreshReport(); 
    165.         // finally add the parameter collection to the crystal report viewer 
    166.         crViewer.ParameterFieldInfo = paramFields; 
    167.         
    168.          
    169.      
    170.     } 
    171. }

    Keep your post to under 1200 characters, else you loose the formatting. (you can do two posts if need be).
    Re. parameters. First, make sure yo have SP 1 for CR 10.5:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Next, see the following:
    [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    CR Dev help file:
    http://msdn2.microsoft.com/en-us/library/bb126227.aspx
    Samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Color toner consumption on M476dw when printing only black pages?

    I purchased a M476dw about a month ago.  After printing the color demo page a few times and one or two color prints, and then until I changed the default settings there were a few pages printed with "accent color". Other than that, I've only been printing black pages since then.
    The supplies report says I have 70% left on my black cartridge (pages printed 310 estimated remaining 750), and 90% remaining on all three color cartridges ( (pages printed 33 estimated remaining > 1000)
    I realize these are just estimates, but I am surprised that 33 pages of printing almost all of which were just accent color has resulted in 10% of the color cartridges consumed.
    I have printer plugged directly into the wall and leave it on all of the time, so no surplus cleaning cycles are being generated, and my default printing mode is:  black & white / Print in grey scale.
    I realize the supplied cartridges are "starter" cartridges but still are there any other factors under MY control on color toner consumption?
    Thanks!
    Jim

    I have the same problem that you. I have a spool order in SAP (Purchase Order) and when the user try to print it a column appears in black boxes.
    The printer model is Esker Fax Server and the Device Type is SWIN.
    The Purchase Order layout have been created with a smartform, I have review the shading for this field and it's correct (0%). And when I preview the PO in me23n the column is correct, without black boxes.

  • Dynamiclaly determine the need of parameter prompt? (CR8.5)

    Hi,
    I'm wondering if it's possible to have cr8 decide if a parameter is needed.
    I have a report, its an invoice template that has some graphics that display depending on a selected parameter.
    The graphics are generally only used when a copy invoice or credit is needed - otherwise the user selects 'plain' and the invoice prints with no graphics.
    The document type is determined by the database field DOC_TYPE which would be 'CIV' for copy invoice or 'CCR' for copy credit - otherwise 'INV' or 'CRN'
    Is it possible to specify that, if the doc_type is 'CIV' or 'CCR' then prompt for graphics if not, no parameter prompt - show/print the plain report.
    The reason for this is that, when invoices are raised, they are raised in batches and it would be inpracticle to stop and choose a parameter for each invoice - these invoices are all printed on headed paper, therefor - graphics are supressed.
    The graphics are only shown when a customer requests a copy invoice and we then send out a pdf generated from the report with graphics shown

    Please re-post if this is still an issue or purchase a case and have a dedicated support
    engineer work with your directly

  • When printing form using Adobe Acrobat X, I get squares over my italic text

    Hi,
    I have created an Adobe Form using Adobe Acrobat XI Pro and just printed it to check whether this works and the following occured:
    - When printing my 14 page document using adobe reader everything looked great
    - When printing my 14 page document using adobe prof X (not XI !) the italic text had some (non filled, seethrough) squares throughout it. The squares are not constant (5-15 squares per sentence) and I cannot recognize a pattern. However, they appear each time I print the entire document.
    - When printing only one page of the document (that has italic text on it) it prints fine with either the free adobe reader or adobe pro X.
    Font is Verdana,Italic. Size is 8,27 pt. Data is sometimes embedded (I did not use this feature and have no idea what is means). I always use Windows. Right now windows 7 to be exact.
    One more thing: as you can see above the file was created using adobe XI. However, my company uses adobe pro X and therefore the document had to be printable using adobe pro X.
    Can someone please help me? I have put a lot of time in the design of this form and not being able to print it correctly is a real dealbreaker for using it which would mean my efforts were wasted.
    I added an example to clearify:
    Best,
    Linda

    This is all I can find in KB:
    http://kb2.adobe.com/cps/877/cpsid_87775.html#main_Known_issues_on_Windows_
    I downloaded MS hotfix and the issue still persists.
    We have to identify if this is an adobe issue or a microsoft issue.

  • Why does the K5400 use up colour ink when printing greyscale?

    Please let me know why all K5400 printers use up the coloured inks when printing only grey scale, is there a way of stopping this waste of inks.?

    There are a few possibilities:
    The color drops are typically much smaller than the black drops so color is used for grayscale graphics unless "use black only" is checked in the driver.  Depending on your operating system and driver this may be an option.
    Black ink is generally not compatible with photo paper.  If you are using photo paper only color ink will be used.
    Color ink is used for servicing to keep the nozzles clear.  See here for information on how ink is used.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Sub report parameter prompt appears when running Visual Studio 2008 with Crystal Reports 2008

    Post Author: relliott
    CA Forum: .NET
    If I build a simple Crystal Report that contains another simple Crystal Sub Report, the report will print preview fine in Crystal 2008.  The problem happens when add this report to a Visual Studio 2008 Web Application Project and I build and debug the application, the Crystal Viewer is prompting the user for the parameter used to link the sub report to the main report.  This should never happen as the user is not supposed to see this parameter.  If I type in some value for this sub-report parameter prompt, the Crystal Report Viewer gives an error message about not finding the field.
    I was having the same problem in Vs2005 with Crystal 10 which is why I upgraded.  Business Object's official fix for this problem was published under their KB article number c2018840 and c2019047.  These hot fixes ended up causing general exception errors in Visual Studio so I scrapped these solutions.
    Support had me install SP0 for Crystal 2008 (which did not fix it).
    Any ideas?
    Any help is greatly appreciated.
    Thanks,
    Rich Elliott

    Hi Bontrager,
    Thank you for posting in MSDN forum.
    According to your description, I agree with pvdg42's suggestion, so I suggest you can try pvdg42's suggestion to install the version of
    Crystal Reports 10.5 to check this issue again.
    Reference:
    http://forums.asp.net/t/1236730.aspx?Which+CR+version+is+in+Visual+Studio+2008+
    In addition, since this forum is
    to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. So if you have any issue about the
    Crystal Reports, I suggest you can ask the issue to the
    SAP Crystal Reports website:
    http://scn.sap.com/community/crystal-reports/content?filterID=contentstatus%5bpublished%5d~objecttype~objecttype%255bthread
    as pvdg42 pervious suggestion, it will be better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Photosmart C4580 "stuck" printing about 20 copies of each when I only asked for 1!

    Hi,
    I am baffled and I need to fix this problem soon!  I need my printer.  All of a sudden, my printer started printing about 20 copies of each item when I only asked for one!  This not only uses a lot of ink, but wastes a ton of time, for the little of time I have put up with it.  Lately, I have just shut it off.  Please - any suggestions??  I thought of uninstalling and reinstalling, but I can't find my disk!  Thank you,  Soly

    Did you ever find a solution for this problem? I have no problem printing the business cards out on a Canon printer, or a different HP printer I used to have, but the D110 is nothing but a pain in the you know what !  I'm using publisher and the avery 8371 card stock,  I searched solutions for days and did everything possible but still they're not printing correctly!! I'm dissapointed in this printer, every time I have a problem with something it always seems to be an HP product!!!  Very frustrating because I never had to mess with any settings in the other printers I had, I would just put the file in, change the quality and click the print button with no problems. I'm ready to throw this printer out the window Anyway thanks in advance and I hope somebody can help me with this issue !!! 

  • When printing a web page, I only get blank pages

    I have a new iMac with MAC OS 10.4.11. I connected an HP psc 2175xi all-in-one printer, and when I try to print a web page from Safari, I only get a very small portion of the header and all other pages are blank. When looking at the Print Preview, every thing looks like it has printed fine, but when it is sent to the printer only blank pages come out. I am able to print from other applications fine. It seems to be related to printing web pages only, because I have also tried to print using Firefox, but the same problem occurs. Can anyone please help?
    Thanks.

    I did not have the HP printer software for Mac OSX installed properly. Once installed the problem went away.

  • HP Photosmart all in one C309a printing multiple copies when its set to print only one copy.

    having issues with my C309a its now printing multiple copys when its set to print only one copy.it started doing this 4 days ago and its happening on both my Windows 7 64 bit computer and my Vista 32 computer that both have the latest release drivers already installed need help.HP please sort this issue out.still under warranty do i have to return it? 

    I am using a Motorola SBG900 Wirless Surfboard Gateway - supplied with Bigpond Cable. It is set to be using WPA security and have never had a problem with it before whilst connecting any wireless devices such as a laptop, PDA etc.
    My feeling is that the wireless functionality of this printer needs some serious work before the next release. And furthermore they should never have released it the way it is as it wouldn't pass 5% of user acceptance tests if using wireless. There are too many complaints on this forum and others about similar problems to suggest that I am not by myself here. Dissapointing considering this is the feature that would be at the top of the list of most purchasing this model. It lets down what could of been a vg printer.
    I agree, I think if I want to get this printer working on a wirless network, I will have to set the IP address manually. The problem is the printer refuses to connect to the router now even after it connected a few days ago with no intervention. I have powered down both the router, PC, and printer without any luck yet. I will set the IP address manually first on the printer and see how it goes, then if it connects will see if the PC/router can see the printer during the SW install procedure which has failed >10 times to date.
    For now I think I will stick with Ethernet as it is no doubt much faster anyway and will try the wirless setup again in a few days when my patience grows back. Does anyone know differences in speed between USB/Wireless/Ethernet? I know this is dependant on a number of things but just interested in ball park figures here.

  • In printing only a specific selected section, the top line or 2 of the printout is not printing. This only happened since the last update. It does not happen when I use internet explorer.

    I read many financial documents during the day. I sometimes print only a selected segment of an article or a financial statement. When I print selected only, the top line or 2 lines is omitted from the print document. It does not happen in explorer.
    I used Firefox for years, and this just started in the last 3 weeks or so. I can get around it by just selecting 2 lines above what I want to print. But, it is annoying.

    * [[Printing a web page]]
    * [[Firefox prints incorrectly]]
    Check and tell if its working.

  • Colors not printing correctly - Only When Printing from Reader 9

    I have recently been having problems printing color PDF's using Reader 9. Yellows are printing as blue, blues as pink, pink as grey, etc. I have no problems printing any other types of photos, documents, or powerpoint presentations so I am assuming it is some setting in Reader. My printer is an HP Color LaserJet CM1015. Any help diagnosing this problem would be greatly appreciated!
    Thanks in advance,
    Dave

    It is using sRGB and that is the only color profile available.
    In addition, when I try to print 4 slides per page and 1 slide per page, the colors are completely different than when I try to print 2 slides per page.
    I have tried changing settings in print options and put them back to default and nothing I do changes the issue. Again, it only occurs when printing from Reader. Everything else prints colors perfectly fine.

  • My Officejet Pro 8000 wireless printer prints to only 4x5" on 8x11 sheet when printing mult pages

    My Officejet Pro 8000 wireless prints to only 4x5 inches on the 8x11 sheet when I try to print multiple pages per sheet from an Adobe file.  The print preview shows the paper dimensions to be 8x11, and the four Adobe pages are properly scaled to fill the 8x11 printed sheet, yet when printing, all the printing is condensed to the upper left quarter of the sheet.

    What did it? I was still trying to figure it out

  • HT2506 I am trying to fill out a PDF form from an internet site, but when I go to print it, none of the content prints, only the header of the document.  Help!

    I am trying to fill out a PDF form from an internet site, but when I go to print it, none of the content prints, only the header of the document.  Help!

    Instead of printing it, try saving it as a pdf from the print menu, and then printing the pdf out.

  • My unusual (?) printer issue -- Prints only partial lines when printing in black (part 2)

    I have been using my HP Officejet J4680 with my Win7 PC for several years and relatively problem-free -- until about six months ago.  
    My printing issue might be rather odd.  So odd, in fact, I’m not sure how to succinctly describe it.  I’m not too techie, but I will try….
    This printer will print some lines correctly, other lines print only partially, and some lines don’t print at all.
    This oddity happens ONLY when I print in black.  When changing the color of the text to any other color other than black the page does print correctly.
    Further, this issue seems to occur ONLY when printing certain things/files/formats.  For example, material from most websites will print correctly.  As will most .PDF files.  Printing files such as .txt, .doc, .wps, etc., seem to be the most problematic.
    Fixes I have tried include:
    Uninstalled and reinstalled printer
    Run HP’s diagnostic tools (including checking for any driver updates)
    Installed several new black ink cartridges
    Cleaned and re-aligned printer head
    Lastly, the “copy” feature continues to produce good results.  These problematic symptoms seem to occur only while using the “print” function.
    Short of relegating this printer to the trash, I’ve tried everything I can think of.  Help/ideas/suggestions appreciated.

    HI Here4Help2,
    Here is a document to troubleshoot poor quality black text for your printer. This is a pretty interesting problem you have here. Let us know if this helps or if the problem remains.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

Maybe you are looking for