IE11 and Crystal Reports Viewer issue
We have a Delphi application which launches Crystal Reports through a Java Web Module. The Delphi application gives users the option to view a single report or multiple reports (Crystal Reports). In previous versions of IE, everything worked fine. However, when we launch multiple reports in IE11, the first report loads properly but the other reports do not open the report in the new window. It opens our home page. So, first pop-up window shows the report1 without issues. Other pop-up windows for report2 – reportN, shows our home page instead of the requested report. Is there a fix for this issue?
Hi,
This is SAP Business one reporting and printing forum.
Please find correct forum and repost above query to get quick assistance.
Please close this thread here with helpful answer.
Thanks
Nithi
Similar Messages
-
Crystal reports and crystal report viewer
Hi.
I have up to recently used crystal report version 11.5 and reports have been made available for users in the organisation via Crystal report viewer.2010 ver 11.2.1.3.
The reports have been saved without data, and the different parameters have been available for the users for them to select approriate dataset,.
I have now upgraded Crystal reports to version 2013 ver 14.1 and crystal report viewer to same version.
The problem now is that the parameters are no longer available for the users, and it is also a requirement to save the reports incl a dataset to even open the report in the new report viewer.
What have I missed? Anyone that can help me ?
brgds TorunnHi Torunn
An alternative may be to create a web app using either the Crystal Reports .NET or Java SDK. Depending on what development software you already have, this may be cheaper than CR Server or "BO server". E.g.; both the .NET SDK and the Java SDK are free:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
SAP BusinessObjects - SAP Crystal Reports, Version For Eclipse Download
The above would be predicated on the assumption that your org has some developer experience (or is willing to acquire it) and that you have the development software (e.g.; VS 2010, or 2012, or 2013 for the CR SDK for .NET).
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Hi, I'm starting with CR viewer for CR 2008 in VS 2008.
I have 3 problems. Look like easy problems, buy during the morning, I didn't found any solution.
3 questions:
- I want CR viewer like "dock = fill". viewer size 100% height and 100% width. I set BestFitPage to true and it doesn't work. I set BestFitPage to false, height and width to 100% and it doesn't work.
- Size of the viewer is the same of the page container. If I change manually size of the page, CR viewer changes too. I don't know how can I do this.
- When height and/or width of the report is greater than page, vertical scroll bar and/ horizontal scroll bar shows.
Wher's the tip??
Thanks.Hi,
Do you see this issue in the CR designer? If so, please post to the Report Design forum:
SAP Crystal Reports
Note that if the issue exists in the CR designer, the issue will exist at runtime also and needs to be resolved in the designer 1st.
Hope this will help!!
Regards,
Amit -
B1 8.8 and Crystal Reports datasource issues
Hello everyone,
the HowTo on using CR with 8.8 recommends the SAP B1 Datasource type for reports.
In our setup this datasource type does not work (logon failed message after entering credentials) while OLE (ADO DB) does.
SAP B1 Datasource type would be of great help to our report designers due to annotated tables.
We were not able to trace what is going wrong i.e. we found no more detailed error msgs.
Is there any documentation on the B1 datasource type and how to investigate issues with it?
Many thanks in advance!
Edited by: Wolfram Richter on Nov 9, 2010 2:01 PMStrange, very strange...
I've done a little test in our setup. Trying to connect to our SBO 8.8 server, I selected the SBO server, the license server and the database type, leaving the credentials blank. Opening the list with companies, it showed all companies.
So something must be going wrong trying to reach either the SBO server or the license server. Like it can't connect to the SQL Server. I don't know if there are any differences in actual connections to MS SQL Server between OLE and SBO connections.
I'm running out of clues. At this point I can only think of two things, but assumed that you used the same info with the OLE connection, they're unlikely. Those are IP resolving issues and MS SQL Server instances. -
Crystal Report Viewer | Issue Default Exporting to Excel
hi,
if any 1 of the column is empty in the report then when exported to the excel the null valued column value is printed by the next column.
For example if i have columns such as A,B,C and B has null values, then B is replaced by c.
Is this a bug?
Thanks and regards,
Dhinesh BEditable RTF, because of the static nature of header and footer information, has restrictions on field display mapping Crystal page numbering to Word page numbering.
RTF export does not, since header and footer information is not placed in header and footer, but in the body itself as static text.
Sincerely,
Ted Ueda -
Crystal Report Viewer Error Handling
Dear All
Thank you for your attention.
I wrote a C# program for user to print out an order using WPF and crystal report viewer.
Computer A is connected directly to the printer through USB.
Computer B and C are connected to the printer through printer sharing.
Computer A can print out anything such as word doc or image to the printer.
However, when using the print function in the crystal report viewer(select printer and press print), it crashes.
Very strange that computer B and C could use the print function in the crystal report viewer without any error.
As in my developer computer I could not simulate the error, how could I capture and study the error of the print function in the crystal report viewer in computer A?
Thanks a lot.
Best Regards
swivantry this:
https://msdn.microsoft.com/en-us/library/aa288423(v=vs.71).aspx
https://msdn.microsoft.com/en-US/library/ms225372(v=vs.80).aspx -
How to center the content in crystal report viewer?
open crystal report viewer in winform, default at the left top
after maxmium the winform window, content become at the center
another odd thing is that i set window winform size 1208*1024 and crystal report view is fill
then tried, content is not center any more
How to center the content in crystal report viewer in code?
Edited by: Mathew_666 on Oct 6, 2011 5:20 AMSince there is no control for center you'll need to do the math on your own. This is just a rough draft, but you'll get the idea.
One of the things you'll need to figure out is your buffer to help you give a centered feel. We'll say that value is 50 in this case.
Height
int buffer = 50;
int formHeight = 1000; // we'll assume a height of 1000 in this case
int crystalTop = buffer;
int crystalViewerHeight = formHeight - (buffer * 2); // buffer is at the top and bottom
Width
int formWidth = 1000; // we'll assume a width of 1000 in this case
int crystalLeft = buffer;
int crystalViewerWidth = formWidth - (buffer * 2); // buffer is at the top and bottom -
Views on CF Report Builder and Crystal Report
Dear all,
I would like to get your opinions on CF Report Builder and
Crystal Report.
As we all know, CF Report Builder is a new reporting tool.
But I find it very difficult to design a complex report maybe due
to limitation in its functionalities. Sometimes the tool shutdowns
by itself without any warning and reason. But the output is nicely
presented on a flash paper / pdf and it can be run on non-MS
platforms.
On the other hand, Crystal Report is a more matured product
but runs only on MS platform. It is very easy to use and very
powerful. I have been using it for almost 10 years. But the output
is not nicely presented on the web browser unless if we purchase
Crystal Report Enterprise to generate the report which is very
costly.
Can you all share your views? I need to make decision which
tool(s) to use. Really appreciate it.
Cheers,
KeikoHi Keiko,
Yes, CF Report builder is new and initially there was few
issues with this. But I guess now it's good after hotfixes.
Well, I am using CF Report Builder. It's good for me. You can
also design and develop complex reports, that depends upon the
query you are writing. You can also add subreports to your main
reports.
Mainly CF Report is platform independent and you can also
generate reports in PDF, EXCEL and FlashPaper.
Crystal Report is no doubt is very good, and it's there for
long years. I agree you can create complex reports with this, but
you also can do the same in CF also. You are using this for last 10
years, so I guess you should try something new and that is CF
Report Builder and you can judge then.
I am sure you will have fun with CF.
Thanks
Sankalan
(www.mindfiresolutions.com) -
Crystal Reports Viewer 2008 and parameter fields
Hello,
I saw this product on the main Crystal Reports site this afternoon and decided to download it to try it out. I have a number of users who would benefit from being able to preview their report results prior to actually running the report. This seems like the perfect product. I have a large number of Crystal Reports which were created in Crystal version XI. I also downloaded the free 30 day version of Crystal Reports 2008 yesterday to see what new features are there.
While testing Crystal Reports Viewer, I tried to run one of my reports which needs a parameter to run properly (account number). This type of parameter is needed for probably 98% of this business' reports.
The problem: Crystal Reports Viewer does not prompt me to input the parameter. In my actual Crystal Report, I had the box "Save Data with Report' left unchecked, as the account number frequently changes. However, if that box is left unchecked, Crystal Reports Viewer will give me the error message "No Saved Data. This report file does not contain saved data and cannot be viewed. To get data into the report, please open and re-save it in the Crystal Reports designer application with the "Save Data with Report" option selected."
Thinking that possibly it was the version of Crystal Reports in which the report was created (XI), I downloaded the free trial of Crystal 2008 and created a very simple test report with one parameter for account number where the account number is retrieved from our database. And I am having the same trouble.
The "Help" section of Crystal Reports Viewer tells me that I can select my parameters in the parameter panel. I do not see anything in my parameter panel other than the words "Current Data Set Last refreshed: 04/12/10 2:58 PM". The help tells me that I can "select the parameter directly in this panel by entering a new value", but there is no option to do so.
Any help would be appreciated.
thanks,
NoelWhat I've learned is that I was originally using Crystal Viewer XI and upon opening it I received a message indicating there was an update.
I ran the update which put me on Crystal Viewer 2008.
Since then I have not been able to refresh my screen to bring up the parameters.
See the attached forum for another post concerning this same issue.
Paramter Prompts in Crystal Viewer -
Crystal Report Viewer and border problems
Post Author: catalinandrei00
CA Forum: Deployment
Hello there, I've created an report and I've added borders for the fields in the report (Right click on the field > Format Object -> Border -> Choose for the 4 margins the line-style single). The report is correctly exported to different formats (.doc, .pdf, .xls). My problem is that when I display the report in an ASP.NET 2.0 page using an Crystal Report Viewer the report is correctly shown but the borders don't appear.My question is why the borders don't appear in the Crystal Report Viewer? Thanks for helping for solving this issue. It's very important.CatalinHello catalinandrei00
I have the exact opposite problem as yours.
I am using integrated crystal reports with Visual Studio 2005 and I have put a Crystal Viewer on a web page.
First I also had the same problem like yours and then in one of the post i found a solution for this. Hope it will work for you too. here it is :-
Just remove the following line from your aspx page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Now regarding my problem. My problems is that now i can view the borders and everything correctly in the viewer but when i try to print the report it automatically exports to Adobe first and BAM!!! the format disappears. Though if i export to word Doc format it export perfectly fine with all the borders and everything
I hope some other reader will come to my rescue...pls HELP. -
WPF Styles and WPF Crystal Reports viewer
Hi,
We are currently developing a WPF application which will utilize Styles created with Expression Blend.
Our environment is VS2010 SP1 and Crystal Reports for VS2010 SP2.
We want to design our reports with Crystal Reports but we don't seem to find any documentation or topics about integrating WPF Styles with the current WPF Crystal Reports Viewer.
So I was wondering if somebody here already tried to use WPF styles with the WPF CR Viewer.
If so, how does it basically work?
Thank you in advance.Hello Alan
This morning I got a short note on the issue from Program Management. In a nut shell this is what they say:
..at this time the WPF viewer doesn't expose support for styles and the best thing will a post
to the idea on [SAP IdeaPlace|SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]. Based on the interest level expressed there the PM group will make a decision on how best to proceed.
Obviously, this is not going to be a swift process, but at least something...
- Ludek -
Crystal report viewer version 10.5.3700 and French
Hi I'm currently using Crystal reports in Visual Studio 2008 and would like to display the Crystal Report viewer in French. In particular the various report items shown in the report such as "Zoom Factor", etc I'd like determine if there's a way to show this information in French. We're currently using version 10.5.3700 of this control.
Note that with CR 10.5.x you must use the CR assemblies for .NET. You can not use the Report Designer Component (RDC). Just saying as you posted the issue into Legacy SDKs and I moved it here.
Re. localization issues see [CR 10.2 Working with Default and Custom Language Resource Files (localization)|http://msdn.microsoft.com/en-us/library/ms227600(VS.80).aspx]
Above applies to CR 10.5 also.
And don't forget to search the forums and \ or use the search box at the top right of this web page.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
Edited by: Ludek Uher on May 17, 2011 9:38 AM -
Error in Preview and Print in Crystal Report Viewer 2.0.0.7 in Workstation
Hi Guys,
I am encountering a problem when clicking preview and print in Crystal Report Viewer 2.0.0.7. It returns an error
Unhandled exception has occurred in your application. If you click Continue the application will ignore and attempt to continue. If you click quit, the application will close immediately. Load report failed.
I already install the runtime crruntime_120_mlb, . net framework 3.5 sp1 and the add-on itself. The viewer is working properly in SAP Server. My version of SAP is SBO 2007 A SP00 PL10.
Regards,
Michaelhere's the detailed error
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text
CrystalDecisions.Shared.CrystalReportsException Load report failed. --- System.Runtime.InteropServices.COMException (0x80004005) The device is not ready.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database()
at SAP_CR.MyForms.frmReportViewer.ConfigureCrystalReports()
at SAP_CR.MyForms.frmReportViewer.frmReportViewer_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Loaded Assemblies
mscorlib
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3620 (GDR.050727-3600)
CodeBase fileCWINDOWSMicrosoft.NETFrameworkv2.0.50727mscorlib.dll
SAP_CR
Assembly Version 2.0.0.7
Win32 Version 2.0.0.7
CodeBase fileCProgram%20FilesSAPSAP%20Business%20OneAddOnsSAP_CRSAP_CR.exe
Interop.SAPbouiCOM
Assembly Version 8.0.0.0
Win32 Version 8.0.0.0
CodeBase fileCProgram%20FilesSAPSAP%20Business%20OneAddOnsSAP_CRInterop.SAPbouiCOM.DLL
System.Windows.Forms
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Windows.Forms2.0.0.0__b77a5c561934e089System.Windows.Forms.dll
System
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3614 (GDR.050727-3600)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem2.0.0.0__b77a5c561934e089System.dll
System.Drawing
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Drawing2.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll
CustomMarshalers
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32CustomMarshalers2.0.0.0__b03f5f7f11d50a3aCustomMarshalers.dll
Interop.CR_Crypto
Assembly Version 6.0.0.0
Win32 Version 6.0.0.0
CodeBase fileCProgram%20FilesSAPSAP%20Business%20OneAddOnsSAP_CRInterop.CR_Crypto.DLL
System.Data
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32System.Data2.0.0.0__b77a5c561934e089System.Data.dll
System.Configuration
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Configuration2.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll
System.Xml
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3082 (QFE.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Xml2.0.0.0__b77a5c561934e089System.Xml.dll
System.Transactions
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32System.Transactions2.0.0.0__b77a5c561934e089System.Transactions.dll
System.EnterpriseServices
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32System.EnterpriseServices2.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll
CrystalDecisions.Windows.Forms
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.Windows.Forms12.0.2000.0__692fbea5521e1304CrystalDecisions.Windows.Forms.dll
CrystalDecisions.Shared
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.Shared12.0.2000.0__692fbea5521e1304CrystalDecisions.Shared.dll
CrystalDecisions.ReportSource
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.ReportSource12.0.2000.0__692fbea5521e1304CrystalDecisions.ReportSource.dll
CrystalDecisions.CrystalReports.Engine
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.CrystalReports.Engine12.0.2000.0__692fbea5521e1304CrystalDecisions.CrystalReports.Engine.dll
System.Web
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3618 (GDR.050727-3600)
CodeBase fileCWINDOWSassemblyGAC_32System.Web2.0.0.0__b03f5f7f11d50a3aSystem.Web.dll
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.CommLayer12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.CommLayer.dll
CrystalDecisions.ReportAppServer.ClientDoc
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.ClientDoc12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.ClientDoc.dll
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.ReportAppServer.DataSetConversion12.0.2000.0__692fbea5521e1304CrystalDecisions.ReportAppServer.DataSetConversion.dll
CrystalDecisions.ReportAppServer.DataDefModel
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.DataDefModel12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.DataDefModel.dll
CrystalDecisions.ReportAppServer.Controllers
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.Controllers12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.Controllers.dll
CrystalDecisions.ReportAppServer.CubeDefModel
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.CubeDefModel12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.CubeDefModel.dll
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.ReportDefModel12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.ReportDefModel.dll
BusinessObjects.Licensing.KeycodeDecoder
Assembly Version 12.0.1100.0
Win32 Version 12.0.0.840
CodeBase fileCWINDOWSassemblyGACBusinessObjects.Licensing.KeycodeDecoder12.0.1100.0__692fbea5521e1304BusinessObjects.Licensing.KeycodeDecoder.dll
JIT Debugging
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example
configuration
system.windows.forms jitDebugging=true
configuration
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box. -
Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise on this problem we are facing. Thank you.
== This happened ==
Every time Firefox opened
== Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise on this problem we are facing. Thank you. ==
== User Agent ==
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5Reset the page zoom on pages that cause problems: '''View > Zoom > Reset''' (Ctrl+0 (zero); Cmd+0 on Mac)
See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages
You can try if it works if you disable OOPP (Out-Of-Process-Plugins) for Flash
You can set the prefs dom.ipc.plugins.enabled.* to false on the about:config page to disable the plugin-container process.
dom.ipc.plugins.enabled (currently false by default)
dom.ipc.plugins.enabled.npswf32.dll (Flash)
To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
If you see a warning then you can confirm that you want to access that page. -
Crystal report viewer does not observe the PaperSize and PageOrientation setting
Hi:
My application is a 3 tier application, where the WinForm client is connected to the WCF Services hosted in IIS server.
The report is generated on server side using WCF service, and export as.rpt with data, the .rpt file is then sent to the WinForm client, the Crystal Report viewer is used to load the .rpt file for preview and print.
On server side I've Microsoft XPS Document Writer installed and set as default printer. On the client side if the default printer is XPS or Nitro PDF creator, the report can be view and print correctly, report design in landscape will be able to show in the landscape in CR viewer, report design using custom paper size (e.g. Half Letter), CR viewer able to show it in Half Letter.
The problem that I'm facing is when the default printer is set to HP LaserJet P1120 or others (I've tried Epson ESC/P Standard driver), the report is always shown in the portrait, and it will not be able to show in custom paper size either. Here is my code:
Dim settings As New System.Drawing.Printing.PrinterSettings
Dim rep as New ReportDocument
rep.Load(sOutputFileName) 'The report is download from server and save in sOutputFileName
SetReportPaperSize(rep, sPaperSizeName, False, settings) ' sPaperSizeName store the name of the custom paper used in the report
CrViewer.ReportSource = rep
Public Shared Sub SetReportPaperSize(rep As ReportDocument, paperSizeName As String, isHardCopy As Boolean, settings As Printing.PrinterSettings)
Dim installedPrinters As Printing.PrinterSettings.StringCollection = Printing.PrinterSettings.InstalledPrinters
Dim printers As New List(Of String)
Dim sPrinter As String
If installedPrinters.Count = 0 Then
Return
End If
SetPrinterDefaultPaperSize(rep.PrintOptions, paperSizeName, settings)
With rep.PrintOptions
.PrinterName = settings.PrinterName
.PaperSource = PaperSource.Auto
If paperSizeName.Trim.Length > 0 Then
.PaperSize = DirectCast(GetPapersizeId(paperSizeName, settings, rep.PrintOptions.PaperSize), CrystalDecisions.Shared.PaperSize)
End If
End With
End Sub
Public Shared Sub SetPrinterDefaultPaperSize(printOptions As PrintOptions, paperSizeName As String, settings As Printing.PrinterSettings)
With settings.DefaultPageSettings
If paperSizeName.Trim.Length = 0 Then
. PaperSize = GetPaperSize (printOptions.PaperSize, settings)
Else
For Each size As Printing.PaperSize In settings.PaperSizes
If size.PaperName.EqualsTo(paperSizeName) Then
.PaperSize = size
Exit For
End If
Next
End If
.Landscape = printOptions.PaperOrientation = PaperOrientation.Landscape
.Margins.Top = printOptions.PageMargins.topMargin
.Margins.Left = printOptions.PageMargins.leftMargin
.Margins.Bottom = printOptions.PageMargins.bottomMargin
.Margins.Right = printOptions.PageMargins.rightMargin
End With
End Sub
Public Shared Function GetPaperSize(paperSizeId As Integer, defaultPrinterSettings As Printing.PrinterSettings) As Printing.PaperSize
Dim settings As Printing.PrinterSettings = defaultPrinterSettings
Dim result As Printing.PaperSize
If settings Is Nothing Then
settings = New Printing.PrinterSettings
End If
' Default paper Size defined in the printer
result = settings.DefaultPageSettings.PaperSize
For Each size As Printing.PaperSize In settings.PaperSizes
If size.RawKind = paperSizeId Then
result = size
Exit For
End If
Next
Return result
End Function
Public Shared Function GetPapersizeId(paperSizeName As String, defaultPrinterSettings As Printing.PrinterSettings Optional defaultpaperSizeId As CrystalDecisions.Shared.PaperSize = CrystalDecisions.Shared.PaperSize.DefaultPaperSize) As Integer
Dim settings As Printing.PrinterSettings = defaultPrinterSettings
Dim result As Integer = defaultpaperSizeId
If settings Is Nothing Then
settings = New Printing.PrinterSettings
End If
If Not String.IsNullOrEmpty(paperSizeName) Then
For Each size As Printing.PaperSize In settings.PaperSizes
' Height and Width in Printing.PaperSize is measure in hundredths of an inch
If size.PaperName.EqualsTo(paperSizeName) Then
result = size.RawKind
Exit For
End If
Next
End If
Return result
End Function
Setting the PrintOptions.PaperSize and PageOrientation seem like no effect on the viewer. My code to load the report to CR viewer is much more complicated than the code I show above, I've a background worker thread to download the report, and when the worker thread finished download the report from the server, it will assign the report to CRViewer. Do the changes in report PrintOption before assign to CRViewe and after assigning to CRViewer make any different?
I'm using VS2010, CR XI R2 (Version 11.5.3700.0). Please Help. Thanks
Regards
JC VoonHi JC,
CRXI R2 is a no go with VS 2010, these two are not compatible.
With CR 11.5 use VS 2005.
Or Use VS 2010 and CR for VS 2010 (13.0)
Once you have the supported / compatible conbination of CR and VS, use the In Proc RAS .NET code from below KBA.
http://search.sap.com/notes?id=0001561333&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031353631333333
Also, see the KBAs returned by below search. The top right corner search box on this page is quite helpful.
http://search.sap.com/ui/scn#query=crystal%252C+paper%252C+orientation%252C+.net%252C+sdk&startindex=1&filter=scm_a_site(scm_v_Site11)&filter=scm_a_modDate(*)&timeScope=all
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications.
Maybe you are looking for
-
Needed steps for installing oracle 10R2 on windows server 2003
Hi to All, Can anybody give me steps for how to install oracle 10R2 on windows 2003 server in production environment and what is the preinstallation task and postinstallation task. Thanks and Regards Mohd Khaja
-
Hi All, I am using Jdeveloper 11.1.2.0.0. I followed below link: http://www.oracle.com/technetwork/developer-tools/jdev/index-098707.html#01But in this link ,they are explained about how to creating our own audit rule in Jdeveloper 10g. How to cre
-
FX Valuation in TPM1 with Gross Amortization Procedure (2 FI accounts)
Dear Experts, I have one question regarding the foreign exchange valuation in tpm1: The Position Management Procedure include the Gross Amortization Procedure, where Premium/Discount is not included in Book Value. Therefore the premium/discount is po
-
Database Account and User Groups
Hello, Currently, I am using DATABASE ACCOUNT for an authentication scheme for all of my applications but, I would like to setup User Groups as well to limit users to thier prospective pages and/or objects within the application for easy maintenance
-
NFL mobile on my iphone4. The app just keeps says to wait that its in the huddle? WHAT IS GOING ON with this app it worked last year. Now I have the new version for 7.1 and it doesn't connect.