Click here to Skip to main content
16,016,306 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all

We are working on a asp.net project. How we can save mathematical signs to mysql or mssql database and display like this image in asp.net page
(http://www.w3.org/Math/XSL/snapshot2.png).

Thank you.
Posted
Updated 22-Feb-12 22:03pm
v2
Comments
CRDave1988 23-Feb-12 0:38am    
U want to store as image or in other format?
Sergey Alexandrovich Kryukov 23-Feb-12 3:40am    
Makes no sense. This is a image or a formula. What exactly do you want to do?
--SA
Varun Sareen 23-Feb-12 3:46am    
you mean that you want to save the formula as varchar and show it like an image?
Sergey Alexandrovich Kryukov 23-Feb-12 3:40am    
Why sign? How it is related to image?
--SA
Varun Sareen 23-Feb-12 3:49am    
not clear :(

1 solution

To do this, you need a software that renders mathematical formula as images at some point. Here's few ways of doing it.

1. Create images for the formula and store the image in the database. (I think this is what you are going to do): I do not know of any software/library that can do this.

2. Store the formula in a textual format (e.g. MathML[^]), and render the image as you send the webpage to the client: But this also needs the same software in point 1, and point 1 seems to be more efficient if the formula are unchanged for a long time.

3. Store the formula in textual format (say MathML), and let the client's web browser render it: Some web browsers can render embedded MathML. But its SOME web browsers after all. Not every one of the can do that. You can find information about browser support on MathML Wikipedia page.
 
Share this answer
 

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