Click to See Complete Forum and Search --> : Printing Crystal Code


Andre01
June 22nd, 2008, 04:18 PM
I write a lot of similar reports in Crystal and want to know if there is any way to print out all the code - the formulas, selections, sorting, print, etc to a printer ?

jggtz
June 23rd, 2008, 02:14 AM
At least in versions 8.5 and 10
In Crystal Reports ide and with the desired report open, You can select Export and choose REPORT DEFINITION

It will generate a txt file as in :


Crystal Report Professional v10.0 (32-bit) - Report Definition
1.0 File Information
Report File: Causantes
Version: 10.2
2.0 Record Sort Fields
A - {Causante.RFC}
3.0 Group Sort Fields
4.0 Formulas
4.1 Record Selection Formula
4.2 Group Selection Formula
4.3 Other Formulas
Name: {@b}
Formula: Trim("Nombre del Despacho")

Name: {@xnombre}
Formula: Trim({Causante.Nombre})

Name: {@xcalleynum}
Formula: TrimRight ({Causante.Calle} + " " + {Causante.Numero})

Name: {@xcdyedo}
Formula: TrimRight ({Causante.Ciudad} + ", " + TrimRight ({Causante.Estado}))

5.0 Sectional Information
5.1 Page Header Section
Visible, Keep Together
PageNumber
Numeric, Visible, Right Alignment, Top Alignment,
Keep Together, Using System Default Formatting,
Leading Minus, 0 Decimal Places, Rounding: 1,
Thousands Symbol: ',', Decimal Symbol: '.'

PrintDate
Date, Visible, Right Alignment, Top Alignment,
Keep Together, Windows Default Type: Not Using Windows Defaults, Date Order: Day Month Year, Year Type: Long, Month Type: Leading Zero Numeric Month, Day Type: Leading Zero Numeric Day, Leading Day Type: None, First Separator: '/', Second Separator: '/', Leading Day Separator: ''

Relación de Empresas Registradas
String, Visible, Horizontal Centre Alignment, Top Alignment,
Keep Together

R.F.C.
String, Visible, Horizontal Centre Alignment, Top Alignment,
Keep Together

N o m b r e ( s )
String, Visible, Horizontal Centre Alignment, Top Alignment,
Keep Together

Dirección Completa
String, Visible, Horizontal Centre Alignment, Top Alignment,
Keep Together

ContaFácil
String, Visible, Left Alignment, Top Alignment,
Keep Together

{@b}
String, Visible, Horizontal Centre Alignment, Top Alignment,
Keep Together, Using System Default Formatting, Word Wrap

5.2 Page Footer Section
Hidden, New Page After, Print At Bottom of Page

5.3 Report Header Section
Hidden, New Page Before

5.4 Report Footer Section
Hidden, New Page After

5.5 Details Section
Visible

Subsection.1
Visible

{Causante.RFC}
String, Visible, Default Alignment, Top Alignment,
Keep Together

{@xnombre}
String, Visible, Default Alignment, Top Alignment,
Keep Together

{Causante.Cedula}
String, Visible, Default Alignment, Top Alignment,
Keep Together

{@xcalleynum}
String, Visible, Default Alignment, Top Alignment,
Keep Together

{Causante.Colonia}
String, Visible, Default Alignment, Top Alignment,
Keep Together

{@xcdyedo}
String, Visible, Default Alignment, Top Alignment,
Keep Together

CP.-
String, Visible, Left Alignment, Top Alignment,
Keep Together

{Causante.CP}
String, Visible, Default Alignment, Top Alignment,
Keep Together

Tel.-
String, Visible, Left Alignment, Top Alignment,
Keep Together

{Causante.Telefono}
String, Visible, Default Alignment, Top Alignment,
Keep Together

{Causante.CURP}
String, Visible, Default Alignment, Top Alignment,
Keep Together, Using System Default Formatting, Word Wrap

Andre01
June 23rd, 2008, 06:11 PM
Thank you so much !