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
Similar Messages
-
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. -
Unable to display Crystal Reports 2008 PDF output on smart phones
Hi Folks,
I'm not sure if this is the proper forum, but here goes. I am just finishing a large ASP.NET web app which makes extensive use of Crystal Reports 2008 and a CrystalReportViewer control. My users routinely e-mail the reports in PDF format. This works great, except now they tell me that when the recipient of the e-mail tries to open the PDF on an iPhone or Blackberry, it will not open. The PDF's open fine on desktop computers.
Here is the code which generates the PDF and attaches it to the e-mail msg.
// export to PDF, then mail that
SmtpClient client = new SmtpClient();
MailAddress from = new MailAddress(ConfigurationManager.AppSettings["ReportMailFrom"].ToString());
MailMessage message = new MailMessage();
message.From = from;
message.SubjectEncoding = System.Text.Encoding.UTF8;
message.Subject = "E-mail BackOffice report: " + strReportName;
MemoryStream memStream = (MemoryStream)rptDoc.ExportToStream(ExportFormatType.PortableDocFormat);
Attachment data = new Attachment(memStream, MediaTypeNames.Application.Pdf);
ContentDisposition disposition = data.ContentDisposition;
disposition.CreationDate = DateTime.Now;
disposition.ModificationDate = DateTime.Now;
disposition.FileName = strReportName + ".pdf";
disposition.DispositionType = DispositionTypeNames.Attachment;
message.Attachments.Add(data);
client.Send(message);
Any ideas on what is happening here and how to make these PDF's visible to smart phones?
Thanks.
DanHi Dan,
What happens if you export from Crystal Reports designer?
I just tried if and BlackBerry tells me I am about to download a file that cannot be viewed on the phone. It doesn't say why though.
Going through the Platforms file it doesn't mention smart phones so it would indicate we don't support them in that format.
HTML worked but not pretty. You'll have to see what Blackberry does support. I found this one kbase article from them:
http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB11245&sliceId=SAL_Public&dialogID=206744335&stateId=1%200%20206742756
I'm testing more but I believe this is a blackberry limit and not CR.
Seems they do support it but very limited.
Thank you
Don -
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 -
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. -
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 -
I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it.
Is it not possible to create a text box, fill it with dynamic (data driven) text, but make the font size either scale up or down automatically, so that the entire text box is filled? This is a feature in PrintShop Mail Pro called COPY FIT. but no such feature in Indesign??
help help help please - I have latest version of indesign - thanks, DJlol... it seems to work, but I have another huge problem!
Apparently .CSV files cannot contain page breaks in the data! The data I am trying to merge is a 'letter', with paragraphs, line breaks, etc.,
But, after data merging, it ignores page breaks and only merges the first paragraph of each letter. (sigh)
Solution? Hopefully, an EASY solution. lol as we have thousands of records.
Is there a third party indesign plugin that will allow .xml, or .xls data merge import??
Thx,
DJ -
My typewriter toolbar is graying out the ability to change font size, type, and color.
Here's what I have done in the past. Maybe not elegant, but
it works. (I
use PHP, but I'm sure you can modify for ASP.)
In the HEAD of each web page, include regular old embedded
STYLE tags,
but INCLUDE an external PHP file:
<head>
<style type="text/css">
<?php include('styles/testcss.php'); ?>
</style>
</head>
Now in that included PHP file, just have CSS code which pulls
in your
dynamic data. Here's an example snippet:
body {
color: #600;
background-color: <?php echo
$row_recordset['bgcolor'];?>
Of course, you'll need the code for the recordset somewhere
too.
Alec
Adobe Community Expert -
Folder action to find and replace text and change line feeds
I want to use a folder action to find and replace text and change Mac carriage returns to DOS line feeds inside text files.
The text to be replaced is: "/Users/wim/Music/iTunes/iTunes Music/Music" (without the quotes)
This text has to be removed (i.e. replaced by an empty string)
The text occurs many times within each file.
The files are playlists exported from iTunes in the M3U format (which are text files). They contain Mac carriage returns. These need to be changed to DOS line feeds.
I have found the following two perl commands to achieve this:
To find and replace text: perl -pi -w -e 's/THIS/THAT/g;' *.txt
To change carriage returns to line feeds: perl -i -pe 's/\015/\015\012/g' mac-file
I know that it's possible to make a folder action with Automator that executes a shell script.
What I want to do is drop the exported playlists in M3U format in a folder so that the folder action will remove the right text and change the carriage returns.
My questions are:
Is it possible to make a folder action that executes command line commands instead of shell scripts?
What is the correct syntax for the two commands when used in a folder action shell script? Especially, how do I escape the slashes (/) in the string to be removed?
Thanks for your helpOk, I've include an applescript to run a shell command. The applesript command quoted form makes a string that will end up as a single string on the bash command line. Depending on what you want to do, you may need multiple string on the bash command lines. I've included some information on folder actions.
It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on. Here is an example.
Author: rccharles
For testing, run in the Script Editor.
1) Click on the Event Log tab to see the output from the log statement
2) Click on Run
For running shell commands see:
http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
on run
-- Write a message into the event log.
log " --- Starting on " & ((current date) as string) & " --- "
-- debug lines
set desktopPath to (path to desktop) as string
log "desktopPath = " & desktopPath
set unixDesktopPath to POSIX path of desktopPath
log "unixDesktopPath = " & unixDesktopPath
set quotedUnixDesktopPath to quoted form of unixDesktopPath
log "quoted form is " & quotedUnixDesktopPath
try
set fromUnix to do shell script "ls -l " & quotedUnixDesktopPath
display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
on error errMsg
log "ls -l error..." & errMsg
end try
end run
How to set up a folder action.
1) right click on folder. click on Enable folder actions
2) Place script in
/Library/Scripts/Folder Actions Scripts
3) right click on folder. click on attach folder action
pick your script.
Create a new folder on the desktop & try.
You can put multiple folder actions on a folder. There are other ways of doing this.
Here is my test script:
on adding folder items to this_folder after receiving dropped_items
repeat with dropped_item_ref in dropped_items
display dialog "dropped files is " & dropped_item_ref & " on folder " & this_folder
end repeat
end adding folder items to
How to make the text into an AppleScript program.
Start the AppleScript Editor
/Applications/AppleScript/Script Editor.app
In Snow Leopard it's at: /Applications/Utilities/AppleScript Editor
Copy the script text to the Applescript editor.
Note: The ¬ is typed as option+return. ption+return is the Applescript line continuation characters.
You may need to retype these characters.
Save the text to a file as an script and do not check any of the boxes below. -
Is it possible to do a GLOBAL color change for both text and graphics in ACrobat XI?
I used to do this using the Pitstop Pro plugin but now Pitstop is almost $900 and this is the only thing that I would use it for, not worth the investment
I can change text color by selecting individual text items, but I want to change all of the red text into white text
I also need to change all of the red graphics into white graphics and I can't figure out how to do that either
I have a trial version of XI on a Mac and will buy it if it can do what I am trying to do, i.e. global color changes to both text and graphics
thanks!!I have version 6, but it is way out of date, doesn't work on my current system, I downloaded a trial version of the new one, version 12 I think, now I have to decide if I can afford to buy it, it is not cheap!
oops, sorry, I didn't read your entire message, aargh!
I'll check with them if I can upgrade from this early version, thanks for the suggestion!
(edited because I didn't read properly!) -
How to save change in 3D text and Object that being made in photoshop cs6..
I was wondering how do I save change for 3D text and objects.
let said the first text i type is Adobe but i want to change it to Microsoft.
how can I save that change in 3D from Adobe to Microsoft.
thank in advantace.You haven't said what version of Pages you are referring to.
Hold down the option key when you go to the File menu and Save As… appears.
It was Apple stiff necked response to users complaint about its removal. They couldn't just put it back.
Once you do do this it is pretty much what it was before.
Peter -
How do i change font size permantly and where do i find this?
Where /how do i change font size permantly and where do I find this in the OS?
debfrommidwest wrote:
I have gone to view to increase but of course that is only long enough until I close page,
....I would like not to have to set my print each time I open computer.
You will need the web browser Firefox installed
http://download.mozilla.org/?product=firefox-6.0.2&os=osx&lang=en-US
Next you will need to add the following addons
Theme Font & Size Changer
https://addons.mozilla.org/en-US/firefox/addon/theme-font-size-changer/
NoSquint
https://addons.mozilla.org/en-US/firefox/addon/nosquint/
Theme Font & Size Changer can adjust the size of the type Firefox uses in the toolbar area.
NoSquint remembers per site web page zoom levels and you can set a minimum size for all web pages so any site you visit is made bigger automatically. Safari doesn't do this.
You can see the difference between Firefox and Safari in this picture.
Note: Firefox is highly customizable browser, and I added the green with the yellow type, you won't see that when you first start using it.
It did that to match my desktop picture, grey is depresssing. -
I'm working with InDesign CS6, Windows 7.
Is there a way, using paragraph rules, to create a heading with shading behind the text and thin lines above and below the text?
I'd like to create headings that look like these:
Thank you!I have a document where I almost do such, but without the fill. I use a Head Style which Spans Columns for this instance; it allows the haeds to flow and fill the width.
Paragraph Rules above and below are turned on with plenty of offset.
I tweaked my setting to accomodate your need - It required only one instance, not above and below, and changing the stroke to a double stroke.
It may be necessary to create a custom stroke to modify the proportion of stroke vs fill. There is a difference of thin-thin and thick-thick, neither of which seemed perfect but might be dependent on the Character height.
Creating custom strokes is accomplished via the Strokes Panel. -
Printing only Text and Subtotals lines in A/R Invoice not Regular lines
How can I create in PLD for A/R invoice that only prints the Text and Subtotals lines in A/R Invoice but not the regular lines the A/R Invoice ?
Hi Hector Santos,
Try this,
->> Open the A/R Invoice Document.
->> Choose the Print Layout Design(PLD) on Top of the Menu Bar.
->> Open the A/R Invoice(System) PLD and Save as the New PLD.
->> Open the New PLD.
->> Choose the Database field(make) on Top of the Menu Bar.
->> Create the Database field in Repetetive Area.
for example,
Row Line Total Field:
Table -> INV1 - A/R Invoice(Item).
Column -> LineTotal.
->> Choose the TEXT field(make) on Top of the Menu Bar.
->> Create the TEXT field in Repetetive Area Footer or End of Report.
->> Create the Database field in Repetetive Area Footer or End of Report.
for example,
Document Total Field:
Table -> OINV - A/R Invoice.
Column -> DocTotal.
This is Duplicate thread, so Close the thread.
Regards,
Madhan.
Maybe you are looking for
-
I have a MacBook Pro Retina (mid 2014) I just recently updated to Yosemite 10.10.2 Now I am not getting any sound to my external monitor using Mini DisplayPort..... picture looks great, just no sound (both were working fine). Using HDMI... everything
-
How to add cost center programatically?
I have a program that must create one or more entries in infotype 15 but I also have to assign the cost center. I've played around with doing it manually in PA30 and you have to save the 15 record first and then go to a different screen (via the men
-
How .xml and ~/Music/iTunes/iTunes Music work
Have posted this before, just reposting in hopes of getting an answer... In 2.5 years we've had 3 hard drives, 2 logic boards, a power supply, multiple crashes, etc. During all this time of data recovery and frantic backing up, I managed to duplicate
-
How to put javascript validation in the text form ?
Hi, I would like to validate 1 of the field in the interactive form. where i can put the javascript validation script ? f.setAction( "Validate", u2018AFRange_Validate(true, 0, true, 100)u2019 and also can i force setfocus() in the formal javascript i
-
Show report Output Directly in the Webpage
Hi, I have personalized a form, and given provision to run a concurrent program directly from tool bar. But to view the output result I need to go to View ->Request ->Conc Request number -> Then View Output. So, rather than doing all those things, I