CSV format with ANSI encoding file Crystal report
Hi All
We are using Business Object XI Release 2 web intelligence/Crystal report to configrure the report send to client
if I configure Character-seperated values format for crystal report template it generate the CSV file in UTF-8 encoding
how to generate character-seperated values format file for crystal report in ANSI encoding
Thanks
Rajesh Pandey
Hi
Bryan Thanks for your help. i am thinking to create an independent Java or C++ program to change the file from UTF-8 to ANSI char set
and shchedule to run to change csv file char set before mail it to client by BO
In this design how we can get the event by BO that file has been created and yet to send by email or FTP
I can see two type of event
Event to Wait for
Event to Trigger on complition
if i create two event
CSV_UTF8_CREATED - will be fire by BO once BO create file and yet to send email
CSV_ANSI_CREATED - will be fire by program once it convert from UTF_8 to ANSI
please guide if its possible to create such event and fire by BO on file creation and yet to send to destination
Thanks
Rajesh Pandey
Similar Messages
-
CSV fomrat with ANSI encoding file Crystal report
Hi All
We are using Business Object XI Release 2 web intelligence/Crystal report to configrure the report send to client
if I configure Character-seperated values format for crystal report template it generate the CSV file in UTF-8 encoding
how to generate character-seperated values format file for crystal report in ANSI encoding
Thanks
Rajesh PandeyHi
Bryan Thanks for your help. i am thinking to create an independent Java or C++ program to change the file from UTF-8 to ANSI char set
and shchedule to run to change csv file char set before mail it to client by BO
In this design how we can get the event by BO that file has been created and yet to send by email or FTP
I can see two type of event
Event to Wait for
Event to Trigger on complition
if i create two event
CSV_UTF8_CREATED - will be fire by BO once BO create file and yet to send email
CSV_ANSI_CREATED - will be fire by program once it convert from UTF_8 to ANSI
please guide if its possible to create such event and fire by BO on file creation and yet to send to destination
Thanks
Rajesh Pandey -
CONVERSION FROM ANSI ENCODED FILE TO UTF-8 ENCODED FILE
Hi All,
I have some issues in conversion of ANSI encoded file to utf encoded file. let me tell you in detail
I have installed the Language Support for Thai Language on My Operating System.
now, when I open my notepad and add thai character on the file and save it as ansi encoding. it saves it perfectly and also I able to see it on opening the file again.
This file need to be read by my application , store in database and should display thai character on jsp after fetching the data from database. Currently it is showing junk character on jsp reason being that my database (UTF8 compliant database) has junk data . it has junk data because my application is not able to read it correctly from the file.
If I save the file with encoding as UTF 8 it works fine. but my business requirement is such that the file is system generated and by default it is encoded in ANSI format. so I need to do the conversion of encoding from ANSI to UTF8 . so Any of you can guide me on the same how to do this conversion ?
Regards
Gaurav NigamGuessing the encoding of a text file by examining its contents is tricky at best, and should only be done as a last resort. If the file is auto-generated, I would first try reading it using the system default encoding. That's what you're doing whenever you read a file with a FileReader. If that doesn't work, try using an InputStreamReader and specifying a Thai encoding like TIS-620 or cp838 (I don't really know anything about Thai encodings; I just picked those out of a quick Google search). Once you've read the file correctly, you can write the text to a new file using an OutputStreamWriter and specifying UTF-8 as the encoding. It shouldn't really be necessary to transcode files like this, but without knowing a lot more about your situation, that's all I can suggest.
As for native2ascii, it isn't for encoding conversions. All it does is replace each non-ASCII character with its six-character Unicode escape, so "voilá" becomes "voil\u00e1". In other words, it avoids the problem of character encodings by converting the file's contents to a form that can be stored as ASCII. It's mainly used for converting property or resource files to a form that can be read by the Properties and ResourceBundle classes. -
Problems with parameter button in Crystal Report Server 2008
Dear all,
I have problems with parameter button in Crystal Report Server 2008.
when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button' on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter' First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
Could any one help me with this?
I appreciate looking forward to your reply
KetyaTry posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server
-
Outbound interface - Generating files with ANSI encoding.
Hi All,
I am able to generate output files with txt extension. But it is generating in UTF-8 encoding files, myself when i open the files in notepad, i find UTF-8 and when opened in wordpad i find ANSI. My user wants it in ANSI in any case.
One more thing my client's language is Spanish, where there will be special characters like Ñ, so if the file is in ANSI, will there be a problem for this characters.
Please help.So which OS is to blame? The Mac seems to be inserting weird paragraph returns that Windows doesn't understand, no matter what type of file encoding you use (UTF-8, Western Windows Latin 1, Western DOS Latin 1).
My understanding is that TextEdit uses standard Unix type line endings, called LF (line feed, hex 0A). Windows stuff uses a different convention, CR + LF (0D 0A). If a Windows app will not display text just because it encounters something other than CR + LF, I'd say it probably has a bug of some sort.
Is there a solution to this probem?
I don't think the line endings of TextEdit can be changed. Some other apps like Text Wrangler offer you a choice in their preferences. -
Need help with adding formatted text and images to Crystal Report?
Here's my scenario:
I have a customer statement that's generated as a crystal report and that has a placeholder for advertisement. The advertisement is mixture of formatted text and images. Until now we only had one advertisement that was always used on the report. The new requirement is that we would have a pool of hundreds of advertisements and would need to display one specific advertisement on the customer statement based on various marketing criteria. They key is that the advertisement content will be determined programmatically and cannot be hardcoded into the report. I'm using Crystal2008 with .net SDK.
Here are the solutions I thought of, but I'm still rather lost and would appreciate your help/opinion.
1) Pass HTML or RTF to the report
Not really sure if this is possible and how to get it done. Also how would I pass in images? Would display formatting be reliable when exporting to PDF?
2) Create each add as a subreport and append it programatically
I actually have this working, but I only know how to append a new section to the end of the report and then load the subreport to the section. I have no other controll of the placement. Is there a way to dynamically load a subreport to a predefined section in the main report? How about adding a dummy subreport in the main report as a placeholder and then replacing it with a different subreport? How could I do this?
3) Pass an Image to the report
I would create each advertisement as an image and then would somehow add the image to the report. How would I load the image and control the placement? Could I somehow define a placeholder for the image in the main report-maybe a dummy image to be replaced?
Thank you.Hello Pavel,
I would got the third way.
You can use dynamic images in your report.
Just by changing the URL to the image the image can be changed.
Please see the [Crystal Manual|http://help.sap.com/businessobject/product_guides/cr2008/en/xir3_cr_usergde_en.pdf] and search for images.
or directly here
[Setting a Dynamic Graphic Location Path on an Image Object|https://boc.sdn.sap.com/node/506]
[Dynamic image and HTTP://|https://boc.sdn.sap.com/node/3646]
[codesample for .NET|https://boc.sdn.sap.com/node/6000]
Please also use
[Crystal Reports 2008 SDK Documentation and Sample Code|https://boc.sdn.sap.com/developer/library/CR2008SDK]
[Crystal Reports 2008 .NET SDK Tutorial Samples|https://boc.sdn.sap.com/node/6203]
Hope this helps
Falk -
Problem while exporting to PDF with japanese character in Crystal Report X1
Hi,
I am using Crystal report X1 with classic ASP on a Windows 2003 Enterprise Server, SP 2. In my application, I have to export the report into PDF, CSV, DOC formats. I am have Japanese strings in the report. While exporting to PDF, empty boxes has displayed in the place of Japanese string and in CSV file, question mark has been displayed instead of Japanese string. But the Doc file is exported correctly. I have not installed any language support software either in server or in client machine. I have used MS Gothic and Arial Unicode MS fonts for the text-objects which has Japanese strings.
Please give me a solution so that I will get PDF file with Japanese strings instead of empty box or question mark.
Do I need to install any language support pack software?
Thanks in advance.
Regards,
ManjuHi Don,
Thank You for your reply. I have resolved the issue of exporting to pdf from crystal report X1 having Japanese data after installing the language pack.
But when I am exporting to CSV or TXT, i am getting ??? instead of Japanese characters. I have tried "export" through crystal report designer and got ??? instead of Japanese.
The Crystal report version I am using is Crystal report X1 11.0.0.1282
Crystal Report Desinger is installed in Windows Xp machine
Font set for Text object is Arial Unicode MS, MS PMincho, MS PGothic
Does the Crystal report X1 11.0.0.1282 has the UTF-8 support for CVS / txt
Please provide me a solution
Thanks in advance,
Regards,
Manju -
Export Of Data In The .CSV Format With Column Headings On Top
I'm trying to export data in the .csv format from a report (Crystal Reports XI Release 2). When I export the data, the heading appears in the first few columns on the left hand side (i.e. columns "A" thru "G") for every row, rather as a column heading on top. These header describe the data beneath it. I tried various combinations of export options. The file needs an extension .csv (or .xls) for the tool that uses the data. Any suggestions how I can accomplish this ?
Abhishek,
I tried to apply your solution, but forgot that the Crystal Reports support desk updated my version of Crystal Reports XI to Release 2 for a previous problem. My CDs are Crystal Reports XI Release 1. Now I can't export at all until I figure out how to turn on the export option. I do have access to older version (version unknown) that came with one of business system. The options it has are "Character", "Tab", and "Delimeter" for "Separated Values (CSV)". It does not have the option that you mentioned. Is there a similar option with this older version ? Lastly, How can I turn on the "Export" for "Crystal Reports XI Release 2" ? Thanks ! ! ! -
Changed number format in vs 2008 versus crystal report format
I am using Crystal report designer 11.0.0.1.282 and I am able to see the numbers in the format I want . example is the year 2012,2013, etc.
I don't want any decimal point to be applied to this like 2013.00 because it is just the year and it should be 2013. when I ran the report in preview inside the designer , everything looks fine. but when I ran the report from our client application, the year format comes as 2013.00
In the Crystal report designer, I have checked the File menu /Options , when the Options dialog that opens up , I have selected Fields tab and have chosen the Number field and have selected the Style for the numbers through all the report to be -1123
the report used to show up with correct format up until a couple of weeks ago, so I am not sure what may have caused this. I was hoping there might be a solution to this.
I have attached how the year shows in the chart legend both in designer and from our client application (VS2008)
greatly appreciate any help and if you could point me to right directionYour System properties may have changed. If the field is set to system it will use what ever your defualt system is set to. Change the field to use format:
-
How to create a report with data using the Crystal Reports for Java SDK
Hi,
How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats. I can create my own report through the following code snippet:
ReportClientDocument boReportClientDocument = new ReportClientDocument();
boReportClientDocument.newDocument();
However, I cannot find a way to add data elements to the report without specifying an RPT file. Is this possible? I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
is there a way to do this through these packages?
com.crystaldecisions.sdk.occa.report.data
com.crystaldecisions.sdk.occa.report.definition
Am I forced to create a RPT file for the different table and column structures I have?
Thank you in advance for any insights.
Ted JenneyHi Rameez,
After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser. I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
<%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
<%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
<%
try {
ReportClientDocument rcd = new ReportClientDocument();
rcd.newDocument();
// Setup the DB connection
String database_dll = "Sqlsrv32.dll";
String db = "qa_start_2012";
String dsn = "SQL Server";
String userName = "sa";
String pwd = "sa";
// Create the DB connection
ConnectionInfo oConnectionInfo = new ConnectionInfo();
PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
// Set new table logon properties
PropertyBag oPropertyBag2 = new PropertyBag();
oPropertyBag2.put("DSN", dsn);
oPropertyBag2.put("Data Source", db);
// Set the connection info objects members
// 1. Pass the Logon Properties to the main PropertyBag
// 2. Set the Server Description to the new **System DSN**
oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
oPropertyBag1.put("Database DLL", database_dll);
oConnectionInfo.setAttributes(oPropertyBag1);
oConnectionInfo.setUserName(userName);
oConnectionInfo.setPassword(pwd);
// The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
// Add a Database table
String tableName = "Building";
Table oTable = new Table();
oTable.setName(tableName);
oTable.setConnectionInfo(oConnectionInfo);
rcd.getDatabaseController().addTable(oTable, null);
catch(ReportSDKException RsdkEx) {
out.println(RsdkEx);
catch (Exception ex) {
out.println(ex);
%>
Throws the exception
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
String tableName = "Building";
String fieldname = "Building_Name";
Table oTable = new Table();
oTable.setName(tableName);
oTable.setAlias(tableName);
oTable.setQualifiedName(tableName);
oTable.setDescription(tableName) ;
Fields fields = new Fields();
DBField field = new DBField();
field.setDescription(fieldname);
field.setHeadingText(fieldname);
field.setName(fieldname);
field.setType(FieldValueType.stringField);
field.setLength(40);
fields.add(field);
oTable.setDataFields(fields);
oTable.setConnectionInfo(oConnectionInfo);
rcd.getDatabaseController().addTable(oTable, null);
This code succeeds, but it is not clear how to add that database field to a section. If I attempt to call the following:
FieldObject oFieldObject = new FieldObject();
oFieldObject.setDataSourceName(field.getFormulaForm());
oFieldObject.setFieldValueType(field.getType());
// Now add it to the section
oFieldObject.setLeft(3120);
oFieldObject.setTop(120);
oFieldObject.setWidth(1911);
oFieldObject.setHeight(226);
rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
Then I get an error (which is not unexpected)
com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
How do I add one of the table.SetDataFields() to my report to be displayed?
Are there any other pointers or suggestions you may have?
Thank you -
Matching config file Crystal Reports 8
Post Author: BBUSA
CA Forum: General
I am a novice user with Crystal Reports 8. I have been using it to modify existing reports. Now I would like to write new reports. When I try to link the new report to my application software it does not show up as an option that I can choose. The reason for this is that there is a little config file that needs to be written for each report. All the reports that I have from before have a matching config file. I can open the file in notepad but when I save it, it is no longer a config format, it becomes a text file. So my question is how do I write the correct config file from scratch. Thank you all for you cyber help.Post Author: SKodidine
CA Forum: General
Open notepad and type in your commands and then do a SAVE AS. For SAVE AS TYPE choose ALL FILES then for your file name type test.ini or test.cfg or whatever the extension is for the config files for the other reports. That should work. -
Error With Export/Print from Crystal Report Viewer
Hello there,
I've searched through the web and SAP discussion boards with not much luck with this issue.
After working through this for some days now I've decided to look here for help.
Environment:
I have created a web Crystal Report viewer application(Developed with SBOP BI Platform 4.0 SP06 .NET SDK Runtime) that communicates with a managed Cyrstal Server 2011 SP4 (Product 14.0)
I am able to connect and authenticate with the server, retrieve a token for communication and display reports in the Crystal report Viewer successfully.
Problem:
When I attempt to export, I receive the prompt to select format and pages.
When I click export after selections most times I receive an error with the text
Unable to cast COM object of type 'System.__ComObject' to interface type 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{74EEBC42-6C5D-11D3-9172-00902741EE7C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Other times the page simply refreshes on export.
When I click to print, no print dialog is displayed the page always refreshes and no error is displayed.
No Print or Export document is ever created.
As many print/export issues seems to be related, I'm guessing this two issues are as well.
Notes:
I am utilizing the ReportClientDocument model
I am storing this in session to use as the crystal report viewer report source on postbacks
I am assigning a subset of export formats to the crystal report viewer
I am setting particular parameters as well on the report source
At this point I would appreciate every assistance I may receive on this issue
Thanks in advance,
Below is the pertinent code
Code:
<aspx>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="true" EnableDatabaseLogonPrompt="False"
BestFitPage="False" ReuseParameterValuesOnRefresh="True"
CssClass="reportFrame" Height="1000px" Width="1100px" EnableDrillDown="False"
ToolPanelView="None" PrintMode="Pdf"/>
<Codebehind>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CrystalDecisions.Enterprise;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.CommonObjectModel;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.DataDefModel;
using CrystalDecisions.ReportAppServer.ReportDefModel;
using CrystalDecisions.Shared;
namespace ClassicInternalReportPage
public partial class Reports : System.Web.UI.Page
protected override void OnInit(EventArgs e)
base.OnInit(e);
if (!String.IsNullOrEmpty(Convert.ToString(Session["LogonToken"])) && !IsPostBack)
SessionMgr sessionMgr = new SessionMgr();
EnterpriseSession enterpriseSession = sessionMgr.LogonWithToken(Session["LogonToken"].ToString());
EnterpriseService reportService = enterpriseSession.GetService("RASReportFactory");
InfoStore infoStore = new InfoStore(enterpriseSession.GetService("InfoStore"));
if (reportService != null)
string queryString = String.Format("Select SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS "
+ "Where SI_PROGID='CrystalEnterprise.Report' "
+ "And SI_ID = {0} "
+ "And SI_INSTANCE = 0", Request.QueryString["rId"]);
InfoObjects infoObjects = infoStore.Query(queryString);
ReportAppFactory reportFactory = (ReportAppFactory)reportService.Interface;
if (infoObjects != null && infoObjects.Count > 0)
ISCDReportClientDocument reportSource = reportFactory.OpenDocument(infoObjects[1].ID, 0);
Session["ReportClDocument"] = AssignReportParameters(reportSource) ? reportSource : null;
CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
CrystalReportViewer1.DataBind();
//Viewer options
// Don't enable prompting for Live and Custom
CrystalReportViewer1.EnableParameterPrompt = !(Request.QueryString["t"] == "1" || Request.QueryString["t"] == "4");
CrystalReportViewer1.HasToggleParameterPanelButton = CrystalReportViewer1.EnableParameterPrompt;
CrystalReportViewer1.AllowedExportFormats = (int)(ViewerExportFormats.PdfFormat | ViewerExportFormats.ExcelFormat | ViewerExportFormats.XLSXFormat | ViewerExportFormats.CsvFormat);
protected void Page_Load(object sender, EventArgs e)
if (IsPostBack && CrystalReportViewer1.ReportSource == null)
CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
CrystalReportViewer1.DataBind();
private bool AssignReportParameters(ISCDReportClientDocument reportSource)
bool success = true;
if (Request.QueryString["t"] == "1" || Request.QueryString["t"] == "2" || Request.QueryString["t"] == "4" )
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "STORE", Session["storeParam"]);
if (Request.QueryString["t"] == "2")
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "FromDate", Request.QueryString["fromdate"]);
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "ToDate", Request.QueryString["todate"]);
else if (Request.QueryString["t"] == "3")
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "SKU", Request.QueryString["sku"]);
else
//Unknown report type alert
success = false;
return success;Thanks Don for your response,
I'm new to the SCN spaces and my content has been moved a couple of times already.
In response to your questions
The runtime is installed on the web application server, if by that you mean the machine hosting the created .NET SDK application.
My question was whether it was also required on the Crystal Server 2011 (I.E. the main enterprise server with CMS and Report management and I guess RAS and all that). I figured this would remain untouched and queries would simply be made against it to retrieve/view reports e.t.c
If install of the SDK on Crystal Server 2011 is indeed required should I expect any interruption to any of the core services after a restart. I.E. I'm hoping that none of the SDK objects would interfere with the existing server objects (in SAP Business Objects)Reason I ask is I note that much of the SDK install directories are similar to the existing Crystal Enterprise Server 2011 (Product 14.0.0)
Is this temp folder to be manually created/configured or is it created by the application automatically to perform tasks. Or are you referring to the default C:\Windows\Temp directory and so saying that the application would try to use this for print and export tasks?Once I'm sure which I'd give the app pool user permission
Printing is to be client side but I figured by default (with the Crystal Report Viewer) it would simply pool and print from the user's printer. This is how it works with the previously used URL reporting approach (viewrpt.cwr). Therefore a user can print the document from wherever they are with their own printer.We don't intend on printing from the server machine, but are you suggesting that a printer must be installed on server (which one web or enterprise server) for any client side printing to work.
App pool is running in 32 bit mode
Initially didn't get anything useful from fiddler but I'd try and look closer on your suggestion.
It's also possible that some of my questions are a misunderstanding of APP vs RAS vs WEB, so please feel free to clarify. Currently I see the Web server as simply the created .NET SDK Application and RAS (Crystal Server 2011 e.t.c) as the existing fully established Application server which I simply pool for information.
Thank you for your patience and advice, -
Problems with concurrency tests using Crystal Reports for VS 2005
Post Author: condeagustin
CA Forum: General Feedback
Hi
My name is Agustin and Im using Crystal Reports for VS 2005
and NET 2.0 to generate pdf files. This is the scenario:
I created a COM+ object in c# and everytime the
COM+ creates an instance of this object, the following flow is executed:
it reads an xml file from a database, then it feeds the report with this
xml file, afterwards it generates a pdf file and finally this pdf file is
inserted into the database. Both fields (xml and pdf fields) are varbinary in the
same table in sql server 2005. All the flow from reading the xml to inserting
the pdf into the database is executed in memory, it never goes to the hard
disk. In other words both the xml and the pdf file are stored in memory (the
RAM). That is the only function of that COM+ object and I already have it in a
production server and it works GREAT!!
The PROBLEM is the concurrency tests. I made the following tests
in the same production server:
1. First I went to the registry and I set the PrintJobLimit to
100 in HKEY_LOCAL_MACHINESOFTWARECrystal Decisions10.2Report Application
ServerServer
2. I shut down the object in the COM+ and I executed 100
threads all at the same time. Each thread created one instance of the object in
the COM+ and the 100 pdfs were generated SUCCESFULLY in 5 minutes!!
3. Then I executed again 100 threads (WITHOUT shutting down the
object in the com+). 10 pdfs were generated succesfully but the rest were
never generated and there was no exception because my object was NEVER
INSTANTIADED in the COM+, I mean, the 90 instances were never created in the
COM+, so my object was never executed, THAT IS MY PROBLEM!! Do I have to
modify something in the registry files of crystal reports to fix this? What can
I do? I have revised the code in that object a LOT OF TIMES and believe me,
everything is being closed and disposed at the end (the memory streams, the
ReportClass objects, the connection to the database, even the dataset used to
store the data of the xml file!
So to sum up the problem is not with the execution of my object
(cause once is created the object works great and the pdf is generated
perfectly!), the problem is with the com+ TRYING to create another instance
of my object given that test scenario. Help me please, What do you
suggest?
The production server has this specifications:
Operative System: Windows Server 2003 Enterprise Edition with Service Pack 2
Processor: Dual Core AMD Opteron 2212 2.00GHz
RAM: 820MB
Hard drive: It is partitioned in 2 drives --> C
drive has 20GB and D has 60GB
Note: Each generated pdf has only one page and if you bring it
to disk its maximum size is 56KB
I hope your answer and thank you
Agustín Conde MartíPost Author: John Werner Enoksen
CA Forum: General Feedback
Hi, im about to write a simular solution where I will use VS2008/Com+ to be in compliance to an existing solition written in VB6.0, so I was googling to look for bumps. Did you figure this one out?
Best regards,
John Werner -
Formatting and alignment issues in Crystal Reports when exported to PDF
Hi Experts,
When we export the crystal reports 2013 reports to PDF we are facing issues with formatting and alignment. The columns are overlapping and also for some column's data, we are able to see only some parts of text when exported to PDF.
Data source for these reports is EHP 7 (SAP ECC 6.0), BO 4.1, Crystal reports 2013.
As these reports are on priority, your help and suggestions are much appreciated.
Looking forward to hear from you guys.
Thanks & Regards,
Vijay.Hi Vijay,
Search for the following in the search bar at the top right of SCN's page:
ForceLargerFonts
UsePrecisePositioningForText
TruncationAdjustment
All these are registry keys that you might need to apply on the machine.
-Abhilash -
Character Encoding in Crystal Reports
Hi,
We are using HTML character encoding to prevent SQL injection, i.e. when a special character like apostrophe (') is entered, it is saved as '. I wanted to know if we could manipulate the data in between the two operations of fetching the data from the DB and displaying the data using Crystal?
We could use formulae/functions in the design/query, but I am looking for a more generic solution using Crystal API. I have attached a screenshot of how Mc'Donald is displayed in the Report.
Thanks for the help!
NoopurAll you need to do is format the field in CR to use HTML Text Interpretation. However note that CR does not support all HTML tags. For details see the following KBAs:
1217084 - What are the supported HTML tags and attributes for the HTML Text Interpretation in Crystal Reports?
1272676 - Not all the standard HTML tags are interpreted in Crystal Reports when using HTML Text Interpretation
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Maybe you are looking for
-
How do I replace my internal hard drive and not lose windows partition?
Hello, I am wanting to swap my internal hard drive out for a larger one. What do I do about my windows partition? I only use boot camp, and there is some stuff on my windows side I don't want to lose. I know how to make a clone for OSX, and I know ho
-
Why can't i play avi files on my new iMac I've only had it a few days but it won't play my movies
i cant seem to play avi files in quicktime .on my new imack..ive got lion installed as its only a few days old plus im a mac newbie am i doing somethng wrong ?. help !
-
Download items to use in tutorials
Muse tutorials call for use of background image. How do I download the images it requests?
-
I can no longer view some video such as the Daily Show
Ever since I have had my MacBook Pro (2years) I've been able to view any video that I wished. Suddenly a few can no longer be viewed, such as Jon Stewart's the Daily Show. Any ideas?
-
iTunes was working fine until I installed an update iTunes promted me to install. iTunes has never ran since. Since the update the below error occurs when trying to start iTunes. The instruction at "0x10001040" referenced memory at "0x10001040". The