Converting to a PDF Issue

Visual Basic


  • 1. New page after group -
    I am using CR for .net with 2003. One report I have groups the data, with one grouping per page. All I did to achieve this was check "New Page after" on the group footer. This works, except the final page has no records (just the page header). How can I get Crystal to ignore this final page? ~ John
  • 2. Why don't these two VERY simple formulas evaluate to the same
    To change the default format for a particular type of field, see my response to Eric Caron from 6/22/04. Since you are combining the result of your running total field with text, to make a complete string, your running total result can be converted to a string and formatted: ToText({#numericalListItemTotal}, 0, ",", "") - This will provide zero decimal places, a comma for a thousand's separator and nothing to be used as the decimal point. Your formula looks as though it would print the way you describe.
  • 3. Default font style?
    Hi all, I have a quick question. Is there a way to define a default font style for all newly created elements on a report? ic

Converting to a PDF Issue

Postby JOHN HARRIS » Sat, 26 May 2007 04:56:47 GMT

I am running reports fine and converting to pDF's, but I am noticing that 
when I do this conversion every "t", "f", and "i" are doubling themselves. 
For example, the field is "Trouble". In the report it shows the same way, 
but when I convert to a PDF the filed shows as "TTrouble". Anyone have an 
idea of what is going on?

CR XI and Adobe v.8.0 on VISTA Ultimate Machine

This is a new occurrence so not sure what changed.



Similar Threads:

1.Word issue with embedded url in Header while converting it to PDF

I've word doc with embedded url into text in a protected Header of
document everything fine so far, when i generate PDF through Adobe pdf
writer its not picking-up and converting embedded url into link in pdf
file it simply showing as normal text

if i try the same think normal area of word its working fine

does any one have any idea why its behaving like this?

2.VBA: Printing Excel to PDF issue


New to VBA, and would appreciate some help on the following:

I am trying to modify an Excel macro to automate printing a bunch of
Excel files to PDF.

My printer settings is set such that in the Adobe PDF Settings tab of
the Printing Preferences, the "View Result in Acrobat" and "Prompt for
PDF Filename" checkboxes are disabled, and this is what I want because
I don't want the dialog box to pop up when I'm printing the files.

However, there are some Excel files that appear to have these settings
saved into them. I have tried recording a macro to disable these
settings but the macro does not appear to record these actions. I
suspect it's because the macro is unable to access the printer object
outside its "jurisdiction".

My problem is that due to certain requirements that I have to meet, I
am not allowed to save the Excel files before I print them to PDF. Is
there any way to access the printer settings from within the VBA macro
so that I can turn off the "View results in Acrobat" and "Prompt for
PDF Filename" settings?

Thank you.


3.Export to PDF Issue!

Using .NET and have a hierarchical dataset binding to a report object -
works just fine.  The export to PDF actually works just fine as well for
smaller datasets.  The problem is with a larger dataset (i.e., about 1700
rows with less than half-dozen child rows) - it churns and churns and times
out on the export to PDF.  It uses about 98% CPU on this larger dataset as
well.  Even on the web server itself it is having this problem.  Any help or
pointers will be much appreciated!

4.Export to PDF - Smaller Fonts - Known Issue

We develop our applications and reports using Visual Studio 2008 with 
Crystal Reports Basic for Visual Studio 2008.  The same issue that's been 
around for years, where you export a report to PDF and during the export 
process, CR shrinks the fonts of text and field objects on the report. 
Simply put, this is overly annoying.  Now that we've upgraded our 
application to use VS2008 (from VS2003).

When we use larger fonts, the font size appear (but upon closer inspection, 
are not exactly) very close to the right size, but they are not.  Not only 
that, the size of the fields in question still shrink!  The field width 
shrinks but the font does, either we have smaller font sizes that 
really makes the reports look ugly, or larger font sizes with LOTS of 
clipping of the text within the object.

How can we get around this to where the exported report actually looks like 
the report in the designer?  #1, we have to use crystal reports and #2, we 
have to export to PDF....

As a side question, why hasn't BO fixed this problem?  It's been a known 
problem for many years...they had a hotfix which fixed it by truncating 
text....but in the designer, the text fits they provided a 
hotfix for the hotfix which just removes the previous hotfix and the 
developer is back to square 1!  This is a hurdle that stinks....


5.Word to PDF Issue with Acrobat Distiller

I am trying to convert word document to PDF using Acrobat Distiller. Acrobat 
Distiller showing status as printing but never converts the document to PDF.

What is wrong with the below mentioned C# code. Am I passing wrong 
parameters to ActiveDocument.PrintOut method?

Object printRange = WdPrintOutRange.wdPrintCurrentPage;
            Object background = false;
            Object append = false;
            Object printFile = true;

Word.Application oWord = new Word.Application();
oWord.DisplayAlerts = WdAlertLevel.wdAlertsNone;
                oWord.Visible = false;
                oWord.WindowState = WdWindowState.wdWindowStateMinimize;
                oWord.Documents.Open(ref wordFileName, ref missing, ref 
missing, ref missing, ref missing, ref missing,
					ref missing, ref missing, ref missing, ref missing, ref missing,
					ref missing, ref missing, ref missing, ref missing, ref missing);
                oWord.ActivePrinter = "Acrobat Distiller";

                oWord.ActiveDocument.PrintOut(ref background, ref append, 
ref printRange, ref pdfFileName, ref missing, ref missing,
                    ref missing, ref missing, ref missing, ref missing, ref 
missing, ref missing, ref missing, ref missing,
                    ref missing, ref missing, ref missing, ref missing);
oWord.ActiveDocument.Close(ref saveChanges, ref missing, ref missing);
                oWord.Quit(ref saveChanges, ref missing, ref missing);

6. Converting .pdf to .tif using Visual Basic to access Adobe Acrobat

7. converting a word doc into a pdf from a form

8. Web service to Convert WORD DOC to PDF VB.NET

Return to Visual Basic


Who is online

Users browsing this forum: No registered users and 48 guest