Using CSS in Crystal Report

Hi,
I wanted to know if and how do we use CSS for formating the fields in Crystal Report. I did see a "CCS" class name option in the "Format Filed" selection, not sure how it works.
Also, wanted to know how do we UPLOAD the CSS to the CMC.
Thank you.
KS.

Hi Chito,
You cannot load multiple images dynamically. Using the 'graphic location' formula for the OLE Object, you can only point to a location that can load one image.
For the second image, you'll need to manually insert another OLE Object and point the formula to the next image's location.
You can try posting to the SAP Crystal Reports, version for Visual Studio space to find out whether this can be done using CR SDK.
-Abhilash

Similar Messages

  • Using CSS in crystal reports

    Hi All,
    We have used external CSS files to apply styles to the report content. But after the CSS implementation we have come across issues with Zoom and export.Following are the issues for which we need a solution.
    1. When the content is zoomed in /out, the size of the text does not change along with the lines and borders and hence the data is seen to be overlapping (incase the zoom is 25% )
    2. The alignment given through the CSS files do not reflect after exporting the content to pdf/excel etc. (eg: The decimal fields and given alignment as "right" but in the exported documents it appears as "left")
    Is this a known behavior in Crystal report or are we missing something?
    Thanks in advance..
    Thara

    Hi Todd Linscott,
    We have using this type of query in SAP in Query Generator
    SELECT  T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
    FROM OINV WHERE  T0.[DOCDATE] >=[%0] AND T0.[DOCDATE]<=[%1]
    For Crystal Report
    SELECT  T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
    FROM OINV WHERE  T0.[DOCDATE >= {?FromDate}  AND T0.[DOCDATE ]< = {?ToDate}
    Pass Parameter in Crystal Report in thats type of syntax
    When you have to add command Right side Parameter button will appear
    For Layout pass
    {?@Dockey}
    This is must.
    Thanks,
    Srujal Patel

  • CSS with crystal reports not working

    <p><span><font size="3"><font face="Times New Roman">We have typed the CSS Class Name property of a text object. We have used the Publishing wizard to publish the cascading style sheet on the reports server. Still it does not work. I have searched the web for answers and the only answer I got was from a forum that said Crystal Reports does not fully support css.</font></font></span><span><font face="Times New Roman" size="3"> </font></span></p><p><span><font size="3"><font face="Times New Roman">All I want to do is apply css to the reports we have developed in Crystal Reports Developer XI R2, and then publish the reports on Crystal Reports Server XI using the publishing wizard and then view them with InfoView. Can anyone give my a straight forward way of doing this?</font></font></span><span><font face="Times New Roman" size="3"> </font></span><span><font size="3"><font face="Times New Roman">Thanks,</font></font></span><font size="3"><font face="Times New Roman"><span>Peter Mead</span><span> </span></font></font></p>

    <p>Hi Peter, </p><p>I do not believe (although documentation is scarce as you have found out) you can use style sheets if you are using InfoView. I was able to use them by including them in our custom JSP pages using the LINK tag (we are printing reports using RAS). However, that&#39;s not applicable if you plan on using InfoView.</p><p>For the record though, you cannot really use style sheets if you are using conditional formatting. If you use CSS to control things like font, color, alignment, basic look-and-feel stuff, and your reports are also using conditional formatting values, then any value that triggers the conditional formatting will lose the CSS Class Name, and will look very out of place on the report with the rest of the values in the column. In those cases, you basically have to hard code the font type, font size, alignment, etc into the conditional formatting rule, which completely invalidates the point of using CSS. If you ever want to change FONT-FAMILY from Times New Roman to Arial then you have to change it in the CSS (which is very easy) and then also in every single report that uses conditional formatting (which is very lame). At that point, you&#39;re better off just using a template. </p><p>Does anyone from Business Objects have any suggestions? I think for CSS to be useful you basically need not only to have the ability to conditionally format, but you also need a checkbox for every possible attribute for "overwrite CSS." If the CSS says FONT-COLOR = black but the conditional format says to make all negative values red, you should be able to say "I want negative values red but I want the font and the alignment to match the rest of the report, so use whatever the CSS says." </p><p>Anyway, I hope your experience is better than mine. Definitely reply if you figure out a good way to use style sheets. </p>

  • To read all the database fields used in a Crystal report 10 file using Vb 6 Code

    Hi
    Iam in development of an Application in Visual basic which lists all the
    database fields used in a particular report (crystal 10)
    In simple i need to show all the checked fields in the database fields section in field explorer section of the crystal report file.
    regards
    venkateshG

    Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with you directly

  • How to create a stored procedure and use it in Crystal reports

    Hi All,
    Can anyone explain me how to create a stored procedure and use that stored procedure in Crystal reports. As I have few doubts in this process, It would be great if you can explain me with a small stored proc example.
    Thanks in advance.

    If you are using MSSQL SERVER then try creating a stored procedure like this
    create proc Name
    select * from Table
    by executing this in sql query analyzer will create a stored procedure that returns all the data from Table
    here is the syntax to create SP
    Syntax
    CREATE PROC [ EDURE ] procedure_name [ ; number ]
        [ { @parameter data_type }
            [ VARYING ] [ = default ] [ OUTPUT ]
        ] [ ,...n ]
    [ WITH
        { RECOMPILE | ENCRYPTION | RECOMPILE , ENCRYPTION } ]
    [ FOR REPLICATION ]
    AS sql_statement [ ...n ]
    Now Create new report and create new connection to your database and select stored procedure and add it to the report that shows all the columns and you can place the required fields in the report and refresh the report.
    Regards,
    Raghavendra
    Edited by: Raghavendra Gadhamsetty on Jun 11, 2009 1:45 AM

  • How to create stored procedures and use those in Crystal reports

    Hi All,
    Can anyone explain me how to create a stored procedure and use that stored procedure in Crystal reports. As I have few doubts in this process, It would be great if you can explain me with a small stored proc example.
    Thanks in advance.

    Hello,
    There is a document explainining how to use Oracle stored proc with Crystal reports.
    Check at:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1084c536-711e-2b10-e48a-924a60745253
    It is for older version but it should work and you can refer to it to get general idea how to start with it. It has a sample oracle stored proc and how to connect it from Crystal Reports.

  • Using Queries in Crystal Reports

    Hi all,
    I know that creating a report in Crystal Reports is essentially creating a query, but I wanted to know if anyone knew of any ways to develop queries using the Query Generator in B1 and then use that query for a report in Crystal, possibly referencing or copying it?
    Also, if anyone is familiar with union queries or sub queries, could you explain their more common uses?
    Thanks for the help,
    Todd

    Hi Todd Linscott,
    We have using this type of query in SAP in Query Generator
    SELECT  T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
    FROM OINV WHERE  T0.[DOCDATE] >=[%0] AND T0.[DOCDATE]<=[%1]
    For Crystal Report
    SELECT  T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
    FROM OINV WHERE  T0.[DOCDATE >= {?FromDate}  AND T0.[DOCDATE ]< = {?ToDate}
    Pass Parameter in Crystal Report in thats type of syntax
    When you have to add command Right side Parameter button will appear
    For Layout pass
    {?@Dockey}
    This is must.
    Thanks,
    Srujal Patel

  • Using CSS with Linked Report Field

    I'm using the CSS Style width:150px on a report column that has a link. However, when using a CSS Style on linked column the formatting doesn't work. If I remove the link the width setting takes effect. How can I correct this? If I embedded the link URL in the query data it will format fine so there appears to be something different happen when Application Express generate the link.

    When a report column is rendered as a hyperlink, the CSS style you specify is not used, that is used only for regular report columns.
    Try putting your style as style="width:150px;" in the Link Attributes in the Column Link section (where you specify the other hyperlink details)

  • Use another edition Crystal Report for VS2008

    I only use Crystal Report in VS2008 before.
    Our company has CR 11 enterprise edition.
    What benefit can get if I use CR 11?
    Do I need to install something in order to use CR 11 in VS2008?

    CR11 is not supported or tested with VS 2008.
    If you want to use VS 2008 you will need to use Crystal Reports 2008.

  • Load Multiple Images using link in Crystal Report

    Hi Guys,
    I am currently in need of developing a new requirement for our company's client. We have to load multiple images using just link in Crystal Report. Let's say that the images are stored in a folder (e.g., C:\Datafolder\Images\) and i have to fetch two images to show in crystal report (say, C:\Datafolder\Images\imageval1 and C:\Datafolder\Images\imageval2). These are actually dynamically created and therefore the number of images are not known and so i have to iterate through the list of image links.
    Is it possible using merely crystal report and how?. Please take note that we're also using C# in developing our software applications.
    Thanks and best regards.
    ---CHITO--

    Hi Chito,
    You cannot load multiple images dynamically. Using the 'graphic location' formula for the OLE Object, you can only point to a location that can load one image.
    For the second image, you'll need to manually insert another OLE Object and point the formula to the next image's location.
    You can try posting to the SAP Crystal Reports, version for Visual Studio space to find out whether this can be done using CR SDK.
    -Abhilash

  • Get Error on using Stored Procedure to use it in Crystal Reports XI

    Post Author: Krüger
    CA Forum: Integrated Solutions
    Hello, I need your help please. I use Oracle 10 and now write a correct compiled stored procedure: this procedure is really simple how you can see:set pagesize 50000set linesize 1000set wrap offset head offset feedback offset trimspool onset serveroutput onset verify offcreate or replace procedure GetFirmenNachMontag is  lutype varchar2(10);BEGINDECLAREbegin lutype:='Test';  dbms_output.put_line(lutype);END;END; In using in sql directly it is really all fine. But when I want to integrat it in a simple report in Crystal I get the error unknow databank connector error. I hope that somebody can help me please. With best regardsM.Krüger 

    If you are using MSSQL SERVER then try creating a stored procedure like this
    create proc Name
    select * from Table
    by executing this in sql query analyzer will create a stored procedure that returns all the data from Table
    here is the syntax to create SP
    Syntax
    CREATE PROC [ EDURE ] procedure_name [ ; number ]
        [ { @parameter data_type }
            [ VARYING ] [ = default ] [ OUTPUT ]
        ] [ ,...n ]
    [ WITH
        { RECOMPILE | ENCRYPTION | RECOMPILE , ENCRYPTION } ]
    [ FOR REPLICATION ]
    AS sql_statement [ ...n ]
    Now Create new report and create new connection to your database and select stored procedure and add it to the report that shows all the columns and you can place the required fields in the report and refresh the report.
    Regards,
    Raghavendra
    Edited by: Raghavendra Gadhamsetty on Jun 11, 2009 1:45 AM

  • Set document name when use PrintToPrinter with Crystal Reports 2008

    Hy,
    from my application, in .net environment,  I print report on printer at runtime with PrintToPrinter command,
    but all documents that I print have the same spool name: "document".
    Is there a possibility to set this name ?
    Thanks
    Filippo

    solution below:
    How to set  the CR print job name that displayed in Printer job queue?

  • Hyperlink using formula in Crystal Reports 8.5

    Is there a way to create hyperlink formula to link to nth page in the report (in the exported pdf file)
    for example:
    i want to created a link to a text and when clicked on the link it should take me to page 8 in the same report.
    Thanks
    -Vivek

    Hi Navin
    Thank you so much for your response.
    Is it particular to any one single report or all the reports which contain hyperlink.
    basically it's just one report that should have filer names and pages numbers in the first page followed by the detailed report of all filers
    Also let us know to what type you are linking to, Is it any email address else a website or a file type.
    The table of contents is loaded from a sub report which is connected to a temporarty table with filer names and page numbers.
    it's a database field
    -Vivek

  • How to take a row from database using index on crystal reports?

    i use datebase field a place but i want to use just a row database field another place. can i take database row its index number? just like [3].

    Hi Guys,
    This is a first.... Can I ask the original poster to please sign up with a new account and repost? At this point we don't know who you are.
    Our developer have been made aware of this problem and should be looking into shortly.
    I am going to lock this post also so the Real Gary doesn't get a bunch of E-mails.
    Thank you
    Don

  • Print Preview using crystal report in SAP B1 slow.

    Dear all,
    I face another problem. Print preview using crystal report in SAP B1 is very slow. Although i have create a query view in SQL server but it's still slow for my user. First time i create using table in crystal report. just drag the table. It's take more than 10 minutes. After that i move all the query to view in SQL server , it's take 1-2 minutes to print preview some time more.. But i think that it's still slow. Does any one know how to print preview fast. Just like in PLD.
    Thanks in advance
    bodhi86

    Hello,
    How do you answered to this question ?
    Malika
    Edited by: Malika Sanoune on May 13, 2011 1:48 PM

Maybe you are looking for

  • How do you turn java code into an .exe or etc...

    I can't seem to figure out how to turn my java code into an executable in windows so that it runs by itself without a comipler, can someone help? (without using visual J++).

  • EDI inbound in FI; Error handling

    Hi, I am facing a Problem in the EDI connecting the Workflow. Please suggest mesome tips to solve the Issue. The process is something like this:                   The User want to Pull the Error Information when an Idoc is processed related to FI and

  • Tabs in a page

    Hi, I am trying to develop a page similar to APEX Dev environment's "Region Definition" page which has various regions (like Identification, User Interface, Source...etc) and just above these regions, it has a list of tabs. Initially the tab named "S

  • GarageBand 10.0.1 problems

    I have a 2013 MacBook Pro with 8 GB of RAM. I've never had a problem with GB until I updated to 10.0.1. Now, anytime I load a drummer track, OR, any song that has more than five tracks, and I experience horrible latency on my software instruments. In

  • BT Infinity - stopped working last night

    My BT Infinity connection stopped working last night and BT Home hub is showing green , sometimes flashing green or solid green. Recently I have a a cross line on the phone line intermittently and several small outages of Infinity connection too. Can