I am using ReportViewer control to export data as word document(doc). when I download the file it appears like this:
There is problem with Arabic font as you see, English words are okay. Do you know how to fix this issue ?
Select the Table > from Localization > choose LayoutDirection to "RTL"
Related
I Have
a filefile.eps that I downloaded from http://www.shutterstock.com/ , it looks like this :
I want
to export all those icons into its own piece so that I can use them on my site.
I've tried
doing this manually one-by-one it is very time-consuming, now I'm looking for a better way to export all of them.
I got some questions
Is there any Mac application out there that help me export/slice my file.eps into multiple icon.png file ?
Should I even need to extract them ?
My main goal are :
load them on my website
keep minimum HTTP request
look awesome on retina display devices.
I'm sure there is more than one way to achieve this kind of task, but this is how I get mine done. Here are my steps :
1. Convert .eps to .png
I did that by open my file.eps in Illustrator, and go to File > Save For Web > Select PNG-8 > Save. You should see it export to your desired destination.
2. Create Sprites Stylesheet
Go to http://www.spritecow.com/
I load my exported file.png, and select any objects, a correspond css code should be automatically generated for me like this :
3. Result
I selected multiple icons that I liked, and display them properly.
Finally, I put together my result : HERE
Hope this answer help someone like me.
For those on a Mac, you can use the default program in Preview.
Once you open the image, go to File > Export > Format.
You can then select your desired format and there's also an option to choose where to save it to.
Hope this also helps :)
I have a Gridview which has some FontAwesome checkmarks (fa-check) the problem is when I export the Grid to Excel these fields come out as blank. More so, at runtime the cell.Text value is the Empty string ("") so I cannot effectively replace the text with a "YES" for instance.
I'm using the usual code for exporting (Stringwriter, HtmlTextWriter and then looping for each
Gridview Row and TableCell therein)
Any clues on how to replace this at export time?
PS: I could have duplicate/hidden columns with YES NO instead of the Font Awesome icons, then hide and unhide them at export time, but I'm looking for a more graceful way.
Any help appreciated
Please check out:
https://www.nuget.org/packages/EPPlus/
It is a more graceful way to export to XLS and has many ways to customize your export.
In addition .. since FA Fonts are font based ... including a link to your resource file so excel can find the font your trying to render?
Hi I'm trying to enter simple arabic text in a brt report, the arabic text shows fine in the editor, but in the pdf it shows unknown caracters.
I'm guessing it's some sort of encoding, i tried to use tahoma font (since it includes arabic, ) but same problem.
Any idea how to fix this ?
Thanks
I had similar issue in my application.Its related to font. For that I have created my version of fontsConfig.xml and loaded it on my application start.
EngineConfig class has the following method to load it.
setFontConfig( URL fontConfig )
For my current project i work with include files (.inc) inside visual studio.
What i did is changed some inc files to asp.
But when i consult my page i have a strange behavior with special characters.
Examples
André for André
Priv� for privé
When i use html.encode i do not get any good result.
In versioncontrol i noticed the only thing that's changed are the extentions for the include files.
Is this normal behavior ?
What did i mis or do wrong ?
I found the cuase of my problem.
In visual studio each file i create is in UTF-8 encoding.
What i need to do is change the encoding from UTF-8 to ANSI.
Problem solved.
In vs-2019, you can save a file with encoding:
From the File menu, choose Save File As, and then click the drop-down button next to the Save button.
The Advanced Save Options dialog box is displayed.
Under Encoding, select the encoding to use for the file.
[https://learn.microsoft.com/en-us/visualstudio/ide/how-to-save-and-open-files-with-encoding?view=vs-2019#to-save-a-file-with-encoding][1]
I want to export a few Pages to pdf/xls. By Pages I mean as the eye sees it - a screenshot of the Page's contents. I know how to build pdf/xls documents using 3rd party tools but is there any way to quickly export the rendered contents of say a Panel?
edit: maybe a tool that can render the page's output as a browser would, and save it as an image file?
There is an open source console program named wkhtmltopdf which you could call from asp.net to convert the page. It can convert to PDF or an image with wkhtmltoimage (JPG, PNG, etc.) using the webkit rendering engine.
Check my answer to this question to see an example of how to convert from a html to a pdf using C#:
Easiest way of porting html table data to readable document
I can recommend http://www.screengrab.org/ for firefox.