Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 24-05-2009, 01:37 PM   #1 (permalink)
In The Zone
 
Join Date: Nov 2003
Location: Kerala
Posts: 236
Unhappy Problem with Arabic in PDF


hi all.. I have a query which is related to arabic display in pdf... my client requires the data to be shown in arabic... everything works fine except, the arabic characters are displayed from left to right instead of right to left... how can I solve this problem...

I use the crystal report engine available with .NET framework 2.0 to create pdf...

This is the code sample

/* Code to export data set to PDF file using the rpt created */
ReportDocument doc = new ReportDocument();
string fileName = (filePath + "\\Statement.rpt");
doc.Load(fileName);

/* set the datasource of doc as dataset */
doc.SetDataSource(dsReport);

/* set export options */
ExportOptions exportOpts = doc.ExportOptions;
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;

/* export as PDF */
doc.ExportToHttpResponse(exportOpts, Context.Response, true, "Statement");
sarincv is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 25-05-2009, 03:58 AM   #2 (permalink)
The Smaller Bang
 
MetalheadGautham's Avatar
 
Join Date: Sep 2007
Location: Gautham City
Posts: 7,492
Default Re: Problem with Arabic in PDF

Tried right justification ?
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
MetalheadGautham is online now  
Old 25-05-2009, 03:24 PM   #3 (permalink)
In The Zone
 
Join Date: Nov 2003
Location: Kerala
Posts: 236
Default Re: Problem with Arabic in PDF

I solved the issue.... in that particular field in rpt file, i selected test direction as right to left....
sarincv is offline  
Old 26-05-2009, 12:14 PM   #4 (permalink)
The Smaller Bang
 
MetalheadGautham's Avatar
 
Join Date: Sep 2007
Location: Gautham City
Posts: 7,492
Default Re: Problem with Arabic in PDF

Quote:
Originally Posted by sarincv View Post
I solved the issue.... in that particular field in rpt file, i selected test direction as right to left....
Thats what right justification means
Glad your issue was solved
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
MetalheadGautham is online now  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by gforz
- by soumya

Advertisement




All times are GMT +5.5. The time now is 03:13 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2