The arabic letter not displaying correctly using aero report in openerp v7 - openerp-7

I'm making a new report in openerp v7, from OpenOffice using aero report.
when i choose pdf as output, the report not displaying arabic letter correctly
if i choose odt they displaying correctly
My problem is , how can i displaying arabic letter correctly, using aero report, Thank in advance!

You issue is font setting. Please correct below settings:
Set NLS_LANG=ARABIC_EGYPT.AR8MSWIN1256 (or AR8ISO8859P6 on UNIX).
Set REPORTS_PATH to the font directory in which the TrueType font exists. For example, C:\WINNT\fonts.
Open the uifont.ali file and edit the [PDF:Subset] section to specify the TrueType font name.
[PDF:Subset]
"Andale Duospace WT J" = "Aduoj.ttf"
"Albany WT J"="AlbanWTJ.ttf"
Also for reference please use the below documentation:
Using PDF in Oracle Reports

Related

There's any font that doesn't change text len

I need a font that have the same len no matter if the line contains all 1111 or 8888.
Now I'm using the default VB.NET 2010 font and two lines with the same amount of characters have different len.
Any monospace font will do: https://en.wikipedia.org/wiki/Monospaced_font
I personally use Consolas because that is also the default font family used by Visual Studio in the code editor: https://en.wikipedia.org/wiki/Consolas
The easiest way to set the font is via the form's designer: https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.control.font

VBA to change Visio font style by font name instead of font index?

I'm hoping to use VBA to change the font style of the texts in shapes(from Calibri to Verdana). Currently I have (a snippet of the code)
Visio.ActivePage.Shapes(1).Characters.CharProps(visCharacterFont) = 235#
235 is the font index for Verdana in my system. However, the font index is very unstable and can change on different computers. Is there a way to change the font style by font name instead, e.g. ...="Verdana"? It's possible in excel, but I couldn't find similar syntax in Visio. Thanks in advance!
You can check what is ID for Verdana font on current PC
Dim Verdana_ID As Integer
Verdana_ID = ActiveDocument.Fonts.Item("Verdana").ID
And after this step set this ID as character's font
Visio.ActivePage.Shapes(1).Characters.CharProps(visCharacterFont) = Verdana_ID

How can I convert excel to PDF by Libreoffice and keep all format from excel file?

Currently, I can covert from excel to pdf by command line, but I have problem about front after convert. In excel file I used Times new roman font, but after convert to pdf I found the font in PDF file is different with it. Please help me how can I fix this problem.
P/s: My excel file in Japanese language, and I'm using Libreoffice 5.0 and centos 7
As said in the comments already "Times New Roman" font has not any Japanese glyphs. So Excel will using glyphs from supplement fonts "Yu Gothic" or "Meiryo" or "Arial Unicode MS" depending of the Windows System. So you possibly will see "Times New Roman" as font in Excel's GUI but the glyphs cannot be from that font.
First of all the system which shall create a PDF from the Excel file must have a font containing appropriate Japanese glyphs. The system is in your case the CentOS Linux Distribution. So at first do # yum groupinstall "Japanese Support" as described in How to Install Asian Fonts on Red Hat & CentOS Linux Distributions.
And while converting using Libreoffice the supplement font used for Japanese characters will also be dependent on Libreoffice option settings. As far as I know there is not a directly possibility to set the font used. But dependent on the settings in
Tools - Options - Language Settings - Language - Default Language for Documents - [x] Asian: ...
different supplement fonts will be used.
For me for example, using Libreoffice 5.1.4.2 on Ubuntu Linux,
while "Chinese (simplified)" is set the font "Noto Sans CJK SC Regular" will be used,
but while "Japanese" is set the font "TakaoPGothic" will be used.
This settings also are influencing the command line
axel#arichter:~$ soffice --headless --convert-to pdf JapaneseExcel.xlsx
if not set "[ ] For the current document only".
So you could try different settings there.
To set the above options without GUI you must edit the file
/home/<user name>/.config/libreoffice/4/user/registrymodifications.xcu
where <user name> is the name of the user which then will run the soffice command line.
In this file find the line:
<item oor:path="/org.openoffice.Office.Common/I18N/CJK"><prop oor:name="AsianTypography" oor:op="fuse"><value>true</value></prop></item>
There the value must be set true. This will set the check-box [x] Asian.
Now find the line:
<item oor:path="/org.openoffice.Office.Linguistic/General"><prop oor:name="DefaultLocale_CJK" oor:op="fuse"><value>ja-JP</value></prop></item>
The value ja-JP there sets the locale Japanese.
Now save the file /home/<user name>/.config/libreoffice/4/user/registrymodifications.xcu.
Supplement:
As far as I see from your screen-shots, there are only Japanese characters in the whole sheet. So why using "Times New Roman" font at all? Why not using font "Yu Gothic" or "Meiryo" or "MS Mincho" for all cells? If so, this font setting will be stored in Excel's cell style settings and maybe then Libreoffice will using a font which is more similar to those. This I would try next if my first suggestion does not lead to a satisfying result.

wrong PDF output size with ExportAsFixedFormat in Excel VBA

I use Excel 2010 with VBA.
I have the following code :
mySh.PageSetup.PaperSize = xlPaperLetter
mySh.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=filePathTmp, _
Quality:=xlQualityStandard, IncludeDocProperties:=False, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
It generates a PDF without error but the size is not correct.
I get a 22.26 x 28.80 cm instead of the 21.59 x 27.94 cm that I would like to obtain.
Any ideas ?
Thanks for your help
I use Excel 2010 and had this problem. I fixed it by changing the printer in Excel's dropdown list on the Print section of the File tab. My default printer is a Konica Minolta copy machine. I changed it to Local Printer (which doesn't actually exist) and it worked! I now have the VBA code returning an 8.5x11 PDF! Now I don't have to use our clunky old laptop with an old Office to get the right size.
Note that picking the Adobe PDF printer did not fix the problem. Just try messing with the different printer choices, or make a fake printer in your computer's Devices and Printers and use that. I hope it works for others with the same issue!
I set the print area where I wanted it: View-Page Break Preview.
Then File-Print-Scaling = Fit Sheet on One Page
Or
File-Print-Page Setup-Fit to: 1 pages wide by 1 tall.
Hope it helps someone.
I also use Excel 2010 and had the same problem. When using ExportAsFixedFormat, the page won't scale. From what I understand, it is the same as using the Save As with file type pdf. This means that you need to need to scale your workbook to fit the page that you require.
If you:
-Open printer settings and select 'No Scaling'
-Page Layout > Print Area > Clear Print Area
-Select View > Page Break View
It will show you the page area. If you scale your worksheet to this it will save to pdf using ExportAsFixedFormat properly.
We had the same problema and soved it changing at devices and printers the default printing options:
-Control Panel->Devices and Printers->Select the printer by clicking once to it.
-Second mouse button->Printer properties->Advanced->Printing defaults->Advanced.
-Choose paper size and click OK.
Why not to change it at excel? Because somthing related to permissions between Excel and the service running spool or...
That default setting makes the macro to export to the paper size correctly.
If it Works for you, is thanks to our IT department, not to me :P

Convert Crystal Reports Text Object/Text box to HTML?

I want to convert the text from Crystal reports to HTML and so far I have noticed that if I simply add a text field, I am able to change it to HTML by formatting text option and then under Paragraph tab there is an option to change the text interpretation. The problem is that I have entered text box to enter some hard coded information along with the database driven field, so I would like to know if there is a way I can convert the text box data into HTML. I am currently using crystal reports XI and want going forward want to upload these reports in a website using visual studio 2010. Thank you for your help.
It appears that the 'Text Interpretation' is ONLY a property of these fields:
Database
Formula
Parameter
Group Name
I wasn't able to get the Text Object to act as HTML.
However, you could create a formula with static HTML text:
"<strong>this is bold text</strong>"
Or a formula that combines text w/ data:
"<pre>" + {table.html_field} + "</pre>"
You could also use a string parameter to display user-supplied, HTML text.