Naviagation between pages is very easy while using Tx Text control for documents like doc, txt,rtf and html in you dot net application. We have to use InputPosition of Tx Text Control its syntex is following
public InputPosition(int page, int line, int column);
here is sample code
Dim PageNo As IntegerPageNo = InputBox(“Page no.”, “Go to page”, “1″)If [...]
Archive for February, 2008
How to move on next page in document while using TX Text Control
Posted in TX Text Control, tagged page naviagation, txt text control on February 27, 2008 | 1 Comment »
Keep Moving Ahead
Posted in Quotes, postive thinking, pravs world, tagged keep moving, Positive Thinking on February 22, 2008 | Leave a Comment »
He who is silent is forgotten;
He who does not advance, falls back;
He who stops is overwhelmed;
He who is out distanced is crushed;
He who ceases to grow, becomes smaller;
He who leaves off, gives up.
The moment you decide to stop in life,
its the begining of your end.
Keep moving ahead.
reference : http://pravstalk.com/
How to get uploaded image dimensions in asp.net
Posted in asp.net 1.1, asp.net 2, c#, tagged asp.net, c#, image dimensions on February 5, 2008 | 4 Comments »
I used following code to get uploaded image dimensions .
Where flLogoUplaoded is name of asp .net file uploaded control at my application
string UploadedImageType = flLogoUpload.PostedFile.ContentType.ToString().ToLower();
string UploadedImageFileName = flLogoUpload.PostedFile.FileName;
//Create an image object from the uploaded file
System.Drawing.Image UploadedImage = System.Drawing.Image.FromStream(flLogoUpload.PostedFile.InputStream);
//Determine width and height of uploaded image
float UploadedImageWidth = UploadedImage.PhysicalDimension.Width;
float UploadedImageHeight = UploadedImage.PhysicalDimension.Height;
Response.Write( [...]
Regular expression for html Table Parsing
Posted in regular expression, tagged regular expression on February 1, 2008 | 3 Comments »
here are some Regular expressions for html parsing . you can use it in your application while parsing html table to fetch data from it
Table Expression = “<table[^>]*>(.*?)</table>”
Header Expression = “<th[^>]*>(.*?)</th>”
Row Expression = “<tr[^>]*>(.*?)</tr>”
Column Expression = “<td[^>]*>(.*?)</td>”