Click here to Skip to main content
15,921,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir / Madam

I want to customize excel export of Crystal Report to Right-to-Left.
I want to change format of Crystal Report in Crystal Report Viewer to Right-to-Left.
How I can do that?
I can make preview of the report to Right-to-Left, I want to make export excel of that report to Right-to-left.
for example in preview I made bellow:

Column 3 | Column 2 | Column 1
______________________________________
.Value 3 | .Value 2 | .Value 1



But in export excel of this report I see:

____________________________________________________
...| ...A....  | ....B.... | ....C.... | ....D.... |  
----------------------------------------------------
.1.| Column 3  |  Column 2 |  Column 1 | ......... |
----------------------------------------------------
.2.| .Value 3. | .Value 2. | .Value 1. | ......... |
----------------------------------------------------


I want to see bellow image in export excel:

....._____________________________________________________
.....|......D......|.....C.....|.....B.....|.....A.....|
.....-----------------------------------------------------
.....|.............|  Column 3 |  Column 2 |  Column 1 | 1
.....-----------------------------------------------------
.....|.............| .Value 3. | .Value 2. | .Value 1. | 2
.....-----------------------------------------------------


Best Regards
Posted
Updated 5-Aug-15 21:46pm
v6
Comments
Reza Alipour Fard 6-Aug-15 2:56am    
I know how I must ask a question. I don't need to read your suggested links.
Nelek 6-Aug-15 11:09am    
Well... as I wrote those suggestions, your "question" was far away from the information you give right now. That's enough reason to say, you might (now)not need them, but you (then) did. ;P
member 8888995 5-Aug-15 9:38am    
Just have a look at this

https://stackoverflow.com/questions/9658694/right-to-left-multi-column-in-crystal-report

1 solution

Please, read this: right to left multi-column in crystal report[^]



[EDIT]
Do not keep your focus on the question: "How to export Crystal Report to Excel to display data in RTL format?"!

You have to keep in mind that you operate on data. So, write a method which uses the same data as Crystal Report and save them as an Excel file.

Please, see:
Export Datatable to Excel in C# [^]
export dataset to excel in windows application[^]
How to export DataTable to Excel in C#[^]
 
Share this answer
 
v2
Comments
Reza Alipour Fard 6-Aug-15 3:12am    
I can make preview of the report to Right-to-Left, I want to make export excel of that report to Right-to-left.

Please see question again, i updated it.
Maciej Los 6-Aug-15 3:46am    
Please, see updated question.
Reza Alipour Fard 6-Aug-15 4:10am    
do you think set right-to-left in excel export of report in crystal report in not possible?
Maciej Los 6-Aug-15 4:54am    
No matter what i think about exporting Crystal Report to Excel. I'm trying to tell you that you have to operate on data, not on UI components.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900