I copied the code in this link
VB.NET - Print RDLC Report without showing ReportViewer control.
By reza aghaei and run tge system.
But it gives me bunch of error saying ' character is not valid '$' . I'm just a newbie here. Hoping someone could help me. This is for our project in school. I am using vb.net 2010
who can help me why i got the report as picture when i view report or export to PDF, i don't know why the report has dots and question mark under words. It should be English. I run on server and client also got this problem. If I export to MS Words or another format then this problem disappear.
Please help me to advise why this problem appear.
According to me,crystal reports supports only True Type fonts.
Check link to understand the difference between both the fonts
(description).
The font you are using may be a Open type font, that CR doesnt support. Just for testing try using a True type font and see if PDF prints, if it doesnt then the problem may not be fonts, and may be somewhere else.
PDF export uses your default PC language. So, set your machine language and everything should be printed in that language.
What is the actual encoding used in Access' VBA editor? I have been searching for a concrete answer for quite a while but with no luck.
I thought it was UTF-8 but I'm not very certain.
My main issue is that when writing a query in VBA I sometimes need to test it in Access' query editor. When copy-pasting however, I lose my native characters (greek in my case) as they turn to gibberish.
I have tried pasting in a text editor and saving it as different encodings but I can never recover the original characters.
Thanks in advance.
Edit
Let me explain this a bit further:
As you can see I can write my greek characters in the VBA editor normally:
However, copying the first line in Access' query editor, I get the following:
Same goes for a simple text editor:
So I am inclined to think that the problem lies inside the clipboard, due to the encoding used for the greek characters. I guess they are not Unicode, as I indeed have to make the change in the System Locale for non-unicode characters. So how are these characters saved/copied? In what encoding?
Answer
Actually this problem was solved by switching the keyboard input language to greek (EL), when copying the actual test string.
I am still not sure however, as to why that happens. If anyone can provide some insight into this, I would love to hear it.
Thanks again
The VBA editor does not support Unicode characters, either for input or display. Instead, it uses the older Windows technology called "code pages" to provide support for non-ASCII characters.
So, the character encoding in the VBA editor corresponds to the code page that is used by the Windows system locale as specified in the "Regional and Language Options" control panel. For example, with my system locale set to "Greek (Greece)"
I can enter Greek characters into my VBA code
However, if I switch my Windows system locale back to "English (United States)"
and re-open my VBA project, the Greek characters have changed to the corresponding characters in the new code page
If "Control Panel" -> "Regional and Language Options" -> "System Locale" is set correctly but you still suffer from this problem some times then note that while you're copying your keyboard layout must be switched to the non-English language.
This is applicable to all non-unicode-aware applications not only VBA.
Credit goes to #parakmiakos
details in this: http://www.pcreview.co.uk/forums/use-greek-characters-visual-basic-editor-t2097705.html
Looks like making sure your OS is set properly, and font choice inside the VBA editor.
I had a similar problem with Cyrillic characters. Part of the problem is solved when set the System locale correctly.
However, The VBA editor still does not recognize cyrillic characters when it has to interpret them from inside itself.
For example it can not display characters from the command:
Msgbox "Здравей"
but if the sheet name is in cyrillic characters it does it well:
Msgbox Activesheet.Name
Finally, it turned out that these kind of problems were solved when I changed to 32 bits version of MS Office.
I have an excel workbook that uses VBA. This VBA works fine except when it is executed on a clients laptop configured with Japanese language settings. I know in VB.NET that I would need to flip the Culture to EN-US and then flip it back when I'm done with the VBA but I can't for the life of me figure out how to get this solution to work in VBA. Is this possible? How so?
-Thanks
I don't think you can do this using just VBA: all the Application.Interrnational settings are read-only.
Usually the international problem is the other way round - VBA works in US-English.
What lines of code are giving you the problem in Japanese language settings?
I have Windows Forms VB.NET application developed under VS2005. I am using Crystal Reports for Visual Studio 2005. The reports has some Arabic and Hebrew text in it. My problem is that although text appears correct in the viewer at run time, when exported to any format including PDF the text appears reversed. The letters appear correctly but the arrangement of the letters in words is reversed and accordingly the word appear incorrectly.
Is there a way to fix this.
Thanks
The problem was fixed by selecting text object paragraph right-to-left property.