logo
Tags down

shadow

Crystal Report Viewer - Programmatically restricting File Format options


By : Artsworks
Date : October 16 2020, 11:12 AM
wish of those help We've ran into this same issue and ended up rolling our own export page and limited the selection there.
It works great, but I would have expected more from Crystal Reports!
code :


Share : facebook icon twitter icon

ASP.NET MVC Run Crystal Report straight to PDF bypassing Crystal viewer


By : alecgrossman
Date : March 29 2020, 07:55 AM
it should still fix some issue I got it working through VS with the following code (The database login error was of result of a typo):
code :
ReportClass rptH = new ReportClass();         
rptH.FileName = Server.MapPath(Url.Content("~/app_data/whkinvc.rpt"));         
rptH.Load();          
rptH.SetDatabaseLogon(...);          
ParameterValues xyz = new ParameterValues();         
ParameterDiscreteValue pdv = new ParameterDiscreteValue();         
pdv.Value = atm.WorkingModel.Header.TicketNumber;          
xyz.Add(pdv);         
rptH.DataDefinition.ParameterFields["@rpt_args"].ApplyCurrentValues(xyz);         
Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);                  
return File(stream, "application/pdf");  

crystal report viewer is not showing same layout of the report as Report opened in crystal reports


By : crazy
Date : March 29 2020, 07:55 AM
it fixes the issue it was a bug in crystal report 13.0.0.4 i un installed the Latest version 13.0.4 and installed the old version 13.0.0.1 and now it is showing the correct formatting.

Crystal Report Viewer Print to Default Printer Programmatically


By : Ahmad Raza
Date : March 29 2020, 07:55 AM
Hope this helps Call PrintToPrinter on the report.
code :
using (var report = new YourCrystalReport())
{
    // Call report.SetDataSource() if necessary
    // Call report.SetParameterValue() as necessary

    report.PrintToPrinter(...);
}

WPF Crystal Reports Viewer: Check if report is in landscape format


By : Leon Fargher
Date : March 29 2020, 07:55 AM
this will help Does anyone know how i can check if a crystal report is in landscape format? , Go to
code :
System.Drawing.Printing.PrinterSettings printersettings = new   System.Drawing.Printing.PrinterSettings();
printersettings.DefaultPageSettings.Landscape = true
System.Drawing.Printing.PageSettings pageSettings = new System.Drawing.Printing.PageSettings();
...
pageSettings.PaperSize = new System.Drawing.Printing.PaperSize("name", 400, 600);
rp.PrintToPrinter(printersettings, pageSettings, false)

Customising Export options in Crystal Report Viewer


By : Steven
Date : March 29 2020, 07:55 AM
I wish this help you I am using SAP crystal reports in Visual Studio 2010.I want to customise crystal report viewer export options. That is, I want to show only export to pdf,and to excel in my crystal report viewer. , Your can restrict the ReportViewer in 13.0.x using:
Related Posts Related Posts :
  • Is there any way in Linq To SQL to obtain the underlying (raw) SQL happening in a SubmitChanges() call?
  • page loads very slowly after its left idle
  • How to export current ASPX page to PDF
  • What is a Generic Handler in asp.net and its use?
  • Confused with asp.net controls and html controls
  • Are Active X for asp.net outdated? What other options do I have?
  • From asp.net code behind (aspx.cs) on the server how can I determine if Silverlight is installed on the client?
  • Is it possible to configure a location in Web.config to only allow local connections
  • How to set checked property of CheckBoxList items in aspx markup?
  • asp.net sessions lost when the page is reloaded (ispostback = false)
  • Request.QueryString[] does not return my desired value
  • ASP.NET Refrence to my local PC in users event log, why?
  • How to use a variable defined in code behind file in ASP.NET on inline code for the same page
  • Error: allowDefinition='MachineToApplication' beyond application level
  • ASP.NET Checkbox databinding to Byte datatype
  • Difference between axd and ashx handlers
  • Moving from WebForms to ASP.NET MVC
  • Cache the DTO or cache data from the expensive resource
  • Migrate Access to ASP.NET
  • Hyperlink in a Datalist
  • ASP.NET: Scheduled tasks
  • Is there a way to update a ViewModel in MVC2?
  • How to bind a function to "Click" event of a dynamically added ImageButton?
  • jQuery server side DOM manipulation
  • window.XMLHttpRequest is undefined in IE7/IE8
  • Detect whether the ie8 xss filter is enabled
  • I would like to convert Joomla CMS to ASP.net as there is no CMS like Joomla in .net. Would that be a good idea?
  • How Can I Use NUnit with ASP.NET Website (Not Web Project)?
  • Probing is not working Asp.net 2.0
  • How to handle this error gracefully in asp.net?
  • ASP.NET MVC - Ajaxified RenderAction
  • nhibernate interceptors with domain context
  • Context.Response.End() and Thread was being aborted
  • How to get Classes to expose the same Shared/Static method
  • Which version of Windows 7 for .NET Developers
  • Convert textarea text into valid html
  • What is the easiest set of tools to get started with Source Control, TDD, and CI for Microsoft.Net 2008/2010
  • Setting up IIS with System.Data.OracleClient
  • Running sites on "localhost" is extremely slow
  • No querystring logged in IIS log on "A potentially dangerous Request.QueryString value detected"
  • Quick way to pretty up a totally unstyled asp.net application
  • Edit and continue in ASP.NET web projects
  • Testing: I *want* to test web.config
  • ASP.NET UserControl not defined?
  • How can plain HTML controls be referenced from ASP.Net controls?
  • Is there a better .NET template system than XSLT?
  • Could not load type 'site._Default'
  • Asp.Net: Is it possible filtering a list in a content page by a value set in its master page?
  • ASP.NET How can I write a message on the screen without the end user removing it?
  • Examples of when to use PageAsyncTask (Asynchronous asp.net pages)
  • Is it possible to have a Conditional Compilation for ASP.NET comment?
  • VB.Net MailMessage text encoding issue
  • How to handle ASP.NET application error that occurs on application start and transfer & display error in MVC view?
  • ASP.NET coding for insert data
  • An Open Source Project Made With Nettiers
  • SQL Server 2005
  • What is machine config in asp.net
  • Does running a HTTPModule prevent IIS Logging?
  • How to retrieve xsl:output media-type value from xsl file via ASP.NET
  • How to get the selected Date from the calendar control?
  • shadow
    Privacy Policy - Terms - Contact Us © bighow.org