Crystal Report to PDF
I am trying to send the data from a single record to a Crstal Report that I created and then create a PDF from that report that I can Print. This is the error message that i get
Exception Details: CrystalDecisions.CrystalReports.Engine.DataSourceException: The data source object is invalid.
Can anyone help me this this?
Thank You
This is the ActionResult that I created.
public ActionResult ExportReport(int? id)
InjuryIllness i = db.InjuryIllnesses.Find(id);
ReportDocument rd = new ReportDocument();
rd.Load(Path.Combine(Server.MapPath("~/Reports"), "Report_InjuryIllness.rpt"));
rd.SetDataSource(i);
Response.Buffer = false;
Response.ClearContent();
Response.ClearHeaders();
try
Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
stream.Seek(0, SeekOrigin.Begin);
return File(stream, "application/pdf", "Report_InjuryIllness.pdf");
catch (Exception ex)
throw;
Hi Caroline_wgo,
Please have a look at the article about Crystal Report Support policy:
http://support.microsoft.com/kb/100368
"Microsoft supports setup and installation for the Crystal Reports products shipped with the Professional and Enterprise Editions of Microsoft Visual Basic for Windows versions 3.0, 4.0, 5.0 and 6.0. For other Crystal Reports support, please do not
contact Microsoft. Please contact Crystal Decisions (formerly Seagate Software), which now owns and supports Crystal Report Writer. For support on Crystal Reports in Visual Studio .NET, please see the article in the References section below.
NOTE: The third-party contact information included in this article is provided to help you find the technical support you need. This contact information is subject to change without notice. Microsoft in no way guarantees the accuracy of this
third-party contact information.
Support for Crystal Reports is provided to registered users. To register for Crystal Reports, visit the following Business Objects Web site:
http://www.businessobjects.com/register/content.asp
(http://www.businessobjects.com/register/content.asp)
Registered users of Crystal Reports may obtain technical support for their Crystal Reports product. To learn more about obtaining technical support, visit the following Business Objects Web site:
http://support.businessobjects.com/
(http://support.businessobjects.com/)
For information about developer-related support for Crystal Reports, visit the following Business Objects Web site:
http://www.businessobjects.com/services/support/crystal_dev.asp
Regards,
Barry
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.
Similar Messages
-
Hi
If I open the Crystal Report in PDF using the below code using weblogic 8.1
ReportExportControl exportControl = new ReportExportControl();
Object reportSource = session.getAttribute("reportSource");
exportControl.setReportSource(reportSource);
ExportOptions exportOptions = new ExportOptions();
exportControl.setExportOptions(exportOptions);
exportControl.setExportAsAttachment(true);
exportControl.setOwnForm(true);
exportControl.setOwnPage(true);
exportOptions.setExportFormatType(ReportExportFormat.PDF);
I get the following error and the server shuts down.
An unexpected error has been detected by HotSpot Virtual Machine:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x060d9bea, pid=604, tid=1392
Java VM: Java HotSpot(TM) Client VM (1.4.2_13-b06 mixed mode)
Problematic frame:
C [awt.dll+0x69bea]
Please help on this issue
Regards
kaspickThat's not Crystal. That's your web app server trying to load the Java JVM AWT library, and crashing when it can't.
Sincerely,
Ted Ueda -
Logon Failed when exporting crystal report to PDF
Hi, I am Teguh
i want to ask about error when export crystal report to pdf
error message
CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed
[LogOnException: Logon failed.]
.I(String , EngineExceptionErrorID ) +506
.D(Int16 , Int32 ) +537
.C(Int16 ) +10
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +577
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType) +141
Falcon.CRTransferSlip.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\Falcon\CRTransferSlip.aspx.vb:77
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
environment:
OS : Windows server 2008 standard SP1
IIS: Version 7.0
SQL: Sql server 2000
VS : Visual studio 2003
i really confused with this error,
please help me for this problem
many thank'sHi Ludek
Thank you for your response. I have installed SP3 and ProcMon and still the same result.
I applied a filter on ProcMon to filter out items where the path contains 'export'.
There are a few items where the result is 'NAME NOT FOUND' but I don't think it necessarly had anything to do with the barcode. These include items such as 'EXPORT\MailDestType','EXPORT\DisableExportLiveOfficeSupport'','EXPORT\ExportDirectory' to name a few.
What drew my attention was the ACCESS DENIED result on specifically the EXPORT\PDF folders. The detail for these are Desired Access : All access, however the very same entry appears a little futher on as a SUCCESS but this is detailed as Desired Access: Query Value.
So in summary it looks something like this:
User : Server\XXX
Operation : RegOpenKey
Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
Result : ACCESS DENIED
Desired Access : All Access
User : Server\XXX
Operation : RegOpenKey
Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
Result : SUCCESS
Desired Access : Query Value
There are a few other entries that follow this pattern that exists in other locations such as HKLM\Software...
Could this 'ACCESS DENIED' be the problem? and If so how do I, and should I give user XXX this ALL Access its looking for.
Regards
Elroy -
Export Arabic Crystal Report To PDF
Hi,
I am using JRC component to build crystal reports in English & Arabic. All works well except exporting Arabic crystal report to PDF?
Crystal File Format Schema: 12.0.0
I was reading another 3 years old thread and this was stated there:
"If you are using the Java Reporting Component, you will not be able to see Arabic characters in your PDF document because the JRC does not support font embedding, and only works with a specific character set when exporting to Adobe" Any from SAP can you please confirm that does this still hold true? And are there any chances or plan to add support in future?
Regards
SCPlease disregard that part of the previous message.
As mentioned earlier, it depends on which of our products you are using to export the report. If you are using the Java Reporting Component, you will not be able to see Arabic characters in your PDF document because the JRC does not support font embedding, and only works with a specific character set when exporting to Adobe.
If you are using the Crystal Reports designer or BusinessObjects Enterprise SDK to export the report, you will need to ensure you have the character set installed on the same machine; for BOE SDK it needs to be on the machine with all of the services. -
Hi,
in my Crystal Report (2008) is a chart, designed with Xcelsius 2008. The report is displayed well. When I export my Flash-Chart from Xcelsius to PDF the chart is displayed correctly in PDF document.
When I export the Crystal Report to PDF my Flash-Chart is displayed completley grey in PDF document. There is the same issue when I schedule my Crystal Report to PDF on BO Edge-Server.
Is this a known issue and can be fixed?I am bringing this subject back up because I am still having problems with this. I am using CR 2008, Xcelsius 2008 and Edge 3.1 Enterprise Server along with a Visual Basic 2005 program. I have Adobe Reader 9 loaded on both my local machine and the server where Edge is installed.
I have a report that is passing flash variables to an embedded .swf file which is a pretty simple horizontal stacked bar chart. When I view this report in CR on my local machine everything on the report is correct and I can print it to PDF and it is correct when I view it with Adobe Reader. I can also print the report to a printer and get the desired result which is the most important thing here.
My next step is saving the report to the Enterprise server. I then run my Winform Visual Basic program that passes the paramters to the report and schedules it to run on the server. The report runs fine and we access it with InfoView. Again the report looks fine because when we open it, it opens with Adobe Reader on the server. The problem is when we try to print this instance of the report from the server the chart keeps doubling up the stacked bars so there are two of them instead of the one.
Does anybody have any ideas????
Thank you in advance.
My problem comes -
Crystal Report generate PDF with J2EE problem
Dear All
I am having a great problem on generating PDF file by Crystal Report in J2EE.
I have my J2EE application runs Crystal Report to generate PDF files.
However for a report, i hit the following error (red color) when the PDF is generating.
But is no problem for the other reports.
Here is the code that i used to generate the PDF
My OS and Java version as follows
Window 2003 server.
Java 1.4.2_04
Please Kindly Help
Thanks very much
public static void export(HttpServletRequest request, HttpServletResponse response, String reportPath, ArrayList paramList, ReportExportFormat outFormat) throws Exception{
System.gc();
HttpSession session = request.getSession(false);
Object reportSource = getReportSource(request, reportPath);
ReportExportControl exportControl = new ReportExportControl();
if(paramList != null && paramList.size()>0){
exportControl.setParameterFields(getParamFields(paramList));
ExportOptions exportOptions = new ExportOptions();
exportOptions.setExportFormatType(outFormat);
PDFExportFormatOptions pdfexpopts = new PDFExportFormatOptions();
exportOptions.setFormatOptions(pdfexpopts);
exportControl.setReportSource(reportSource);
exportControl.setExportOptions(exportOptions);
exportControl.processHttpRequest(request, response, session.getServletContext(), null);
exportControl.dispose();
public static IReportSource getReportSource(HttpServletRequest request, String reportPath) throws Exception{
ReportClientDocument oReportClientDocument = new ReportClientDocument();
HttpSession session = request.getSession(false);
oReportClientDocument.open(reportPath, 0);
return oReportClientDocument.getReportSource();
00:57:08,671 ERROR reportdefinition Thread-28 - Report printer was not valid, switching to default printer.
00:57:08,687 ERROR objectformatter Thread-28 - com.crystaldecisions.reports.dataengine.k: |Y
00:57:09,343 ERROR b Thread-28 - Disk Exporter: no output file was created by an exporter
00:57:09,343 ERROR b Thread-28 - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); java.lang.IllegalArgumentExceptionHi,
I have tried this code but stil the same.
However i tried setup another tomcat and application in the other machine and the only job for the application is exporting the report that has problem, then the error is gone.
So i guess that is the memory size problem.
Thanks for this
One more question about the memory size between Tomcat and Crystal report.
I have set in catalina.bat as
set JAVA_OPTS = "-Xms2048M -Xmx1024M"
and CRConfig as
<JVMMaxHeap>1024000000</JVMMaxHeap>
<JVMMinHeap>512000000</JVMMinHeap>
1. Is that the correct setting.?
2. The memory in the JAVA_OPT and is the MAX and MIN memory that java would use,
then is the Max memory in CRConf is 1024M out of the java heap size or the application use another 1024 memory -
No link to the local .avi files after exporting Crystal report as .pdf
Hello all,
The overall scenario is like-
My application fires a query on SQL Server database and result of that query is stored in a Dataset. This dataset is set as a datasource to the Crystal report. Now some, records (returned by the query) have .avi files(i.e. Event Videos which are stored on the local hard disk) associated with them. I have stored these .avi files in a specific path on local Hard disk say "C:/EventVideos/*.avi" . I used a special format in these avi files name. (like - "EventVideo_1.avi" (This is for 1st event), "EventVideo_5.avi" (This is for 5th event)etc. to identify which avi is for which event. All events do not have avi files associated with them)
Now, I take one Text Object in crystal report. Using it's Format editor created a formula for hyperlink as -
"file:///c:/EventVideos/EventVideo_" + {DataTable1.EventID} + ".avi" .
EventID is the field of dataset which has ID's (like 0, 1, 2, 3, 4 etc) of all resulted events. It is of a String data type.
Now when I export, my report as .xls, .rtf, .doc, I can open the avi files. When I bring cursor on this Text Object, cursor get change to Hand and after click on it avi file start to play.
But if I export it as .pdf, it does not contain the link for avi files. When I bring cursor on this Text Object , it does not change to Hand, and after click on it nothing happens. No video play.
I stick to this problem. What should be done in this case?
Appreciate your help.
Thanks in advance.duplicate - please do not post multiple times
-
No link after exporting Crystal report as pdf file
Hello,
If my Crystal Report contain link to the .avi file saved on the local hard disk and if I export the Report as .pdf file, pdf file does not contain that link. Why?
The overall scenario is like-
My application fires a query on SQL Server database and result of that query is stored in a Dataset. This dataset is set as a datasource to the Crystal report. Now some, records (returned by the query) have .avi files(i.e. Event Videos which are stored on the local hard disk) associated with them. I have stored these .avi files in a specific path on local Hard disk say "C:/EventVideos/*.avi" . I used a special format in these avi files name. (like - "EventVideo_1.avi" (This is for 1st event), "EventVideo_5.avi" (This is for 5th event)etc. to identify which avi is for which event. All events do not have avi files associated with them)
Now, I take one object in crystal report. Using it's Format editor created a formula for hyperlink as -
"file:///c:/EventVideos/EventVideo_" + {DataTable1.EventID} + ".avi" .
EventID is the field of dataset which has ID's (like 0, 1, 2, 3, 4 etc) of all resulted events. It is of a String data type.
Now when I export, my report as .xls, .rtf, .doc, I can open the avi files. When I bring cursor on this object, cursor get change to Hand and after click on it avi file start to play.
But if I export it as .pdf, it does not contain the link for avi files. When I bring cursor on this object, it does not change to Hand, and after click on it nothing happens. No video play.
I stick to this problem.
Appreciate your help.
Thanks in advance.Taken from CR Help File:
"PDF format is a page-based format. The exported documents are intended for printing and redistribution. PDF format will export both layout and formatting in a manner that is consistent with how the report looks on the Preview tab. PDF format embeds the TrueType fonts that appear in the document. (Non-TrueType fonts are not supported.) This export format does not support Microsoft font-linking technologyu2014which is used to provide support for some extended character sets such as Chinese HKCS. Therefore, the fonts used in the report must contain all of the required glyphs. These URI types are supported for hyperlinks: "http:", "https:" and "mailto:".
Therefore your hyperlink is not working as u are using File type when cr only supports http https and mailto uri types -
Crystal Report as PDF without Crystal Report Viewer
Hi,
i have a question to a Crystal Report document. The situation is, that i have a document in InfoView. If i open the Crystal document, it will be launch the Crystal Report viewer in the IE. The next step is to use the export function, to create a PDF Document.
Now, i would like to open a PDF Document directly, without the Crystal Report Viewer. How can i configuration that?
Thanks for help.You could always schedule the report to PDF format, then when you clicked to view the Latest Instance, it would come up in PDF format.
-
Exporting a crystal report as PDF and Attaching to an email via code - Filename Issuses?
Post Author: alynch
CA Forum: .NET
I need to export a crystal report as a pdf and send it out via email. I have created a subroutine that works but the attached filename come up as "untitled.txt" so the receiving machine believes it is a text file. If I rename it on the recipients machine to a ".pdf" I can open it with acrobat and it looks OK. Does anyone know how to rename the file as a pdf prior to sending it out?
Thank You.
al
I have included a copy of the subroutine:
Dim repdoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
Dim diskOpts As New CrystalDecisions.Shared.DiskFileDestinationOptions()
Dim ExpOpts As CrystalDecisions.Shared.ExportOptions
Dim MailOpts As New CrystalDecisions.Shared.MicrosoftMailDestinationOptions()
repdoc = Me.CrystalReport11
repdoc.Load("C:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\WindowsApplication3\WindowsApplication3\CrystalReport1.rpt")
ExpOpts = repdoc.ExportOptions
With ExpOpts
.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.MicrosoftMail
.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
End With
With MailOpts
.MailMessage = "Message"
.MailToList = "enter email adress here"
.MailSubject = "Attached is a PDF file - .net Export test "
End With
ExpOpts.DestinationOptions = MailOpts
Try
repdoc.Export()
Catch err As Exception
MessageBox.Show(err.ToString())
End Try
End SubPost Author: Knight
CA Forum: .NET
I had this same problem today, here's what I used. Its built in 2 parts. Step one loops throught and exports PDF copies of a traking report. Step 2 builds an email list from a SQl query and sends it.STEP ONE:Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'Declare the some variables Dim row1 As DataRow Dim brokerID As String Dim brokername As String Dim brokerEmail As String Dim shipdate As String Dim crParameterFieldDefinitions As ParameterFieldDefinitions Dim crParameterFieldDefinition As ParameterFieldDefinition Dim crParameterValues As New ParameterValues() Dim crParameterDiscreteValue As New ParameterDiscreteValue() Dim crParameterFieldDefinitions1 As ParameterFieldDefinitions Dim crParameterFieldDefinition1 As ParameterFieldDefinition Dim crParameterValues1 As New ParameterValues() Dim crParameterDiscreteValue1 As New ParameterDiscreteValue() Dim CrReport As New CrystalReport1() ' Report Name Dim report As ReportDocument = "O:KNIFormats_ReportPrivateSMStageShipmentInfo" Dim CrExportOptions As ExportOptions Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions() Dim CrFormatTypeOptions As New PdfRtfWordFormatOptions() Dim SHIPDATE123 As String SHIPDATE123 = _month & "/" & _day & "/" & year Dim db As String db = System.Configuration.ConfigurationSettings.AppSettings("Datalogin") Dim sqlCon As New SqlConnection sqlCon.ConnectionString = db Dim strsql1 As String strsql1 = "SELECT tblSOOrd_Hdr.BrokerCd, tblSO_Ord_Hdr.BrokerName, tblSM_Ship_Hdr.ShipDate " strsql1 &= "FROM tblSO_Ord_Hdr INNER JOIN tblSM_Ship_Hdr ON tblSO_Ord_Hdr.Locale = tblSM_Ship_Hdr.Locale AND tblSO_Ord_Hdr.OrdNo = tblSM_Ship_Hdr.OrdNo AND " strsql1 &= " tblSO_Ord_Hdr.RlsNo = tblSM_Ship_Hdr.RlsNo INNER JOIN tblSys_Cust_Broker ON tblSO_Ord_Hdr.BrokerCd = tblSys_Cust_Broker.BrokerCd " strsql1 &= "GROUP BY tblSO_Ord_Hdr.BrokerCd, tblSM_Ship_Hdr.ShipDate, tblSO_Ord_Hdr.BrokerName " strsql1 &= "HAVING (tblSM_Ship_Hdr.ShipDate = '" & SHIPDATE123 & "') " Dim da1 As New SqlDataAdapter(strsql1, sqlCon) Dim worktbl1 As DataTable worktbl1 = New DataTable("tblEmail") da1.Fill(worktbl1) da1.FillSchema(worktbl1, SchemaType.Source) If worktbl1.Rows.Count > 0 Then For Each row1 In worktbl1.Rows brokerID = CStr(row1("BrokerCd")).Trim brokername = CStr(row1("BrokerName")).Trim shipdate = CStr(row1("ShipDate")).Trim CrReport.Load() crParameterDiscreteValue.Value = shipdate crParameterFieldDefinitions = CrReport.DataDefinition.ParameterFields crParameterFieldDefinition = crParameterFieldDefinitions.Item("ShipDate") crParameterValues = crParameterFieldDefinition.CurrentValues crParameterValues.Clear() crParameterValues.Add(crParameterDiscreteValue) crParameterFieldDefinition.ApplyCurrentValues(crParameterValues) crParameterDiscreteValue1.Value = brokerID crParameterFieldDefinitions1 = CrReport.DataDefinition.ParameterFields crParameterFieldDefinition1 = crParameterFieldDefinitions1.Item("Broker") crParameterValues1 = crParameterFieldDefinition1.CurrentValues crParameterValues1.Clear() crParameterValues1.Add(crParameterDiscreteValue1) crParameterFieldDefinition1.ApplyCurrentValues(crParameterValues1) CrDiskFileDestinationOptions.DiskFileName = "c:Test_Folder20" & _year & "-" & _month & "-" & day & "" & brokername & ".pdf" CrFormatTypeOptions.FirstPageNumber = 1 ' Start Page in the Report CrFormatTypeOptions.LastPageNumber = 1000 ' End Page in the Report CrFormatTypeOptions.UsePageRange = True CrExportOptions = CrReport.ExportOptions With CrExportOptions .ExportDestinationType = ExportDestinationType.DiskFile .ExportFormatType = ExportFormatType.PortableDocFormat .DestinationOptions = CrDiskFileDestinationOptions .FormatOptions = CrFormatTypeOptions End With Try CrReport.Export() Catch err As Exception MessageBox.Show("DID NOT EXPORT") End Try Next MessageBox.Show("All PDF's exported succesfully") End If End SubSTEP 2: Private Sub Button3Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim row2 As DataRow Dim SHIPDATE123 As String SHIPDATE123 = _month & "/" & _day & "/" & year Dim db1 As String db1 = System.Configuration.ConfigurationSettings.AppSettings("Datalogin") Dim sqlCon As New SqlConnection sqlCon.ConnectionString = db1 Dim strsql2 As String strsql2 = "SELECT tblSOOrd_Hdr.BrokerCd, tblSys_Cust_Broker.BrokerName, tblSM_Ship_Hdr.ShipDate, tblSys_Cust_Broker.ContactEmail " strsql2 &= "FROM tblSO_Ord_Hdr INNER JOIN tblSM_Ship_Hdr ON tblSO_Ord_Hdr.Locale = tblSM_Ship_Hdr.Locale AND tblSO_Ord_Hdr.OrdNo = tblSM_Ship_Hdr.OrdNo AND " strsql2 &= " tblSO_Ord_Hdr.RlsNo = tblSM_Ship_Hdr.RlsNo INNER JOIN tblSys_Cust_Broker ON tblSO_Ord_Hdr.BrokerCd = tblSys_Cust_Broker.BrokerCd " strsql2 &= "GROUP BY tblSO_Ord_Hdr.BrokerCd, tblSM_Ship_Hdr.ShipDate, tblSys_Cust_Broker.ContactEmail, tblSys_Cust_Broker.BrokerName, tblSys_Cust_Broker.Email_ASN " strsql2 &= "HAVING (tblSM_Ship_Hdr.ShipDate = '" & SHIPDATE123 & "') AND (tblSys_Cust_Broker.Email_ASN = 1) AND (tblSys_Cust_Broker.ContactEmail <> '') " Dim da1 As New SqlDataAdapter(strsql2, sqlCon) Dim worktbl2 As DataTable worktbl2 = New DataTable("tblEmail12") da1.Fill(worktbl2) da1.FillSchema(worktbl2, SchemaType.Source) Dim brokerID As String Dim brokername As String Dim brokerEmail As String Dim shipdate As String If worktbl2.Rows.Count > 0 Then For Each row2 In worktbl2.Rows brokerID = CStr(row2("BrokerCd")).Trim brokername = CStr(row2("BrokerName")).Trim brokerEmail = CStr(row2("ContactEmail")).Trim shipdate = CStr(row2("ShipDate")).Trim Dim mail As New MailMessage Dim att As String att = "c:Test_Folder20" & _year & "-" & _month & "-" & _day & "" & brokername & ".pdf" 'set the addresses mail.From = New MailAddress("[email protected]") mail.To.Add(brokerEmail) mail.Attachments.Add(New Attachment(att)) 'set the content mail.Subject = "Shipment Tracking report from Knox Nursery for " & SHIPDATE123 mail.IsBodyHtml = True mail.Body = "
" mail.Body &= "This shipment update has been requested by:
" 'send the message Dim smtp As New SmtpClient smtp.Send(mail) ' MessageBox.Show("No Records Found", "Failed to send", MessageBoxButtons.OK, MessageBoxIcon.Stop Next Else MessageBox.Show("No broker have opted in", "No Emails Sent", MessageBoxButtons.OK, MessageBoxIcon.Information) End If MessageBox.Show("Emails sent... ", "Emails Sent", MessageBoxButtons.OK, MessageBoxIcon.Information) End Sub -
Crystal report 10- pdf version upgrade to 1.4
Hi,
Presently we are using Crystal report 10 to generate reports in pdf format.
The version in which pdf's are generated in 1.3
We would like to upgrade pdf the version to 1.4
Could anyone please advise what is the way forward on this?
Thanks.
Regards,
JitenHi,
Can you please Reply to this post how you sorted out so that it may be useful for one's who read this Thread.....
Thanks & Regards
Karthik Sivakumar. -
RTF inccorect text when I export my Crystal Report to PDF
Hello,
I'm facing a quite unusual problem.
I've developped a VB.NET 2008 application for my customer that creates Crystal Reports from manually-entered text.
There's a part where the user can enter RTF text in a RichTextBox control, or import from a RTF File.
Here's what I do :
I'm typing a three-lines example in Word 2007 and save it in RTF.
Then I import it in my application into the RichTextBox.
When I display the report, everything looks fine, but when I export it to PDF, "i" letters are inserted after each "t" letter.
It looks like it appears only after a "bold"-ed text. Here's and example: [http://screencast.com/t/31t4X86XBs3]
I'm using CrystalReports Editor Included in Visual Studio 2008.
Has anyone already encoutered that issue ?
Regards,
GuillaumeSee [this|https://forums.sdn.sap.com/click.jspa?searchID=29094456&messageID=7206473] forum thread for possible clues to a resolution. In a nut shell, as long as the Calibri font is up to date, the other two steps are;
1) Ensure you are using the latest Service Pack as suggested by Jonathan
2) See what USP10.dll is loading (use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility)
Also, if this is a win app, compile it to an exe and run the exe to see if the issue persists. (when running the app exe, the USP10 loaded should be from the CR bin directory. when running ion the .NET environment, the USP10 will load from win\system or other)
Ludek
Edited by: Ludek Uher on Jul 16, 2009 10:57 AM -
Converting a crystal report to pdf and then opening the pdf automatically
I am successfully exporting a crystal report to a pdf file using code in vb.net 2008 in a windows application. The crystal report is open in the viewer control and the user presses a button to export it.
I create a variable with the report name and the location.. All works correctly. However, I want the pdf to be open once it is saved which I believe is the case when you create the pdf using the build in crystal export control. But I am not using that.
I presume I could call another form and use the adobe com control, but i prefer to do this in one place.
How can I accomplish this.
Thanks
smHaigHow about if I filter the open dialog box using the pdf name and folder. Then that one would be the only one open in the dialog box and if the user selects it, it would open. Have not tested yet, but this popped into my mind. Seems better than a button on the form with the crystal view to open another form . Or I could have the adobe com object over laying the cr viewer and just make it visible if they press a button to open the abode file..
Maybe people have tried this and could comment on the better choice to view the pdf
1. call another form that contains the adobe com
2. place the adobe control over the cr viewer and make visible if user requests to see pdf.
3. use a filtered open dialog box. -
Export Crystal Report to PDF only
Hi,
I'm new to Crystal Report(CR) for VS2010, so please bear with me. How do i make CR to export to PDF file only. When i try to click on the export icon, it gives me so many options to export the file but i only need the user to export to PDF file. Any help is greatly appreciated.Hello,
CR for VS 2010 now gives you the options through an API to allow which types will show up in the export options.
In your viewer click event add this :
private void ViewReport_Click(object sender, EventArgs e)
rptClientDoc = rpt.ReportClientDocument;
crystalReportViewer1.ReportSource = rpt;
// set up the format export types:
// to set each type allowed
//int myFOpts = (int)(CrystalDecisions.Shared.ViewerExportFormats.RptFormat | CrystalDecisions.Shared.ViewerExportFormats.PdfFormat | CrystalDecisions.Shared.ViewerExportFormats.RptrFormat | CrystalDecisions.Shared.ViewerExportFormats.XLSXFormat );
// to set all types allowed
int myFOpts = (int)(CrystalDecisions.Shared.ViewerExportFormats.AllFormats);
crystalReportViewer1.AllowedExportFormats = myFOpts;
Thank you
Don -
Crystal Report to PDF change fonts, cut text and change lines
Post Author: jzwanziger
CA Forum: Exporting
Hello all, I am using Crystal Reports v10 and I created my report. The report works fine and the export function works fine in some particular servers. We were developing under Windows Server 2003 Service Pack 2 using Visual Studio 2005 Service Pack 1. We created the deployment and in our testing servers works fine (Windows Server 2003 and Windows XP these machines doesn't have any development tool).
When we installed the same deployment (MSI) file in the customer Windows Server 2003, the exporting function to PDF or using it the Crystal Reports viewer doesn't work (Same worng thing that is displayed in the viewer is in the PDF). We had detected labels cut in the middle, some fields changed the font size or alignment and some lines move it up, down or growing. Obviously this looks like a environment problem, but we don't have any idea how to fix it, or what is missed.
We tried to install, Windows Service Pack 2, install Acrobat Reader v8, verified the dll's, try to install the "dbex10win_en.zip" hot fix (we were not able to install it, setup file fail due some registry inconsistencies), Validate that the fonts are the same, and nothing fix the problem.
Could somebody help us, we are a little desperate.
thanks in advace for any idea.See [this|https://forums.sdn.sap.com/click.jspa?searchID=29094456&messageID=7206473] forum thread for possible clues to a resolution. In a nut shell, as long as the Calibri font is up to date, the other two steps are;
1) Ensure you are using the latest Service Pack as suggested by Jonathan
2) See what USP10.dll is loading (use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility)
Also, if this is a win app, compile it to an exe and run the exe to see if the issue persists. (when running the app exe, the USP10 loaded should be from the CR bin directory. when running ion the .NET environment, the USP10 will load from win\system or other)
Ludek
Edited by: Ludek Uher on Jul 16, 2009 10:57 AM
Maybe you are looking for
-
What is the best way to open a HTTPS connection?
What is the best way to open a HTTPS connection and retrieve the content as XML? This is how most of the online API is done nowadays, how can this be done on the iphone SDK? Thanks
-
How can I remove a doubly-invisible file?
My external drive has a 28GB invisible file on it called "Volume Catalog Info". The finder says the disk is full, but won't reveal the file, even with all files made visible. The way I found the monster file was using DiskSurveyor 2.5 under Classic.
-
While I'm trying to use the getting started guide for Plugin DTP the following erroe occurs...... Data Tools Platform Model Base (1.5.0.200707041) requires feature "org.eclipse.emf (2.2.0)", or later version. This the download from the Oracle Site up
-
Hi all, when running the following code, I get an ArrayIndexOutOfBounds: 255 error. I should note that getHist() returns an int[3][255]. I'm sure there's something simple that I should be doing, but I don't know what it is. Any ideas? private void sa
-
In the WSJ I'm attempting to download my stock portfolio as a CSV
How to do you convert a stock portfolio available on the WSJ as a file.csv. The Mac Safari will not convert also. I must use a PC Windows to do the job. Jotabe