I need to translit the documents, translit from cyrillic letters to latin letters. and I need to make my program to work with as many documents as it possible, and huge document, may be a document with 500 pages.... So, I'm thinking different ways to implement it to work as efficient as possible... any advices?
hurrem
Posts
-
is it possible to work with Word files using Binary Reader and writer? -
working with Word file using Microsoft.Office.Interop.WordHello, Could anybody help me to solve my problem, I don't know how can I get the "nextchar", I mean, using wordApp.Selection.Find function I find a character that was searched for, and now I need to get the next character. The next character that stays right after the searched character. For example: I'm searching for "b" in "I have some problems", so now I need to get that "s", which stays after "b". And then I need to get the whole word "problems".. How can I do this? :omg: :omg:
-
Sorting two columns as one in GridViewHello, Please, tell me how can I sort two tables and display them in one column of GridView. I'm using ASP.NET Classified Starting kit, and want to add one more price column for euro. So, actually when I display them on the page, I need two combine this two cols in one, and sorting should work. I have no idea how to do that... But I hope, it's possible. coz in my web-site ppl should be able to put prices of their ad in one of these two currencies, let's say euro or dollar. Or may be there is a better solution without adding a column?
-
problem with utf-8 encodingyes. By the way, the text in aspx file is written with HTML, like this:
Поиск:
-
problem with utf-8 encodingoops, it didn't show the code from web.config, here it is:
-
problem with utf-8 encodingHi, I very need your help. I'm doing a site in russian language and have problems with encoding. I have this in my web.config:
and then this in my MasterPage:
and in the default.aspx, I have this:
]]>
But it doesn't display properly the russian text in the ContentPlaceHolders within the default.aspx.... could you please tell, how can I solve this question?
-
NavigateURL problemHi, I have a very strange problem. The navigateURL is changing on browser. So, when I debug the value of url i.e. is: E:\Documents\www.txt but in the browser it shows me: file:///E:/Documents/www.txt as you noticed, it changes my backslashes and becouse of that the url is not working. Does anybody know why? and how can I change it? my code is here:
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) { TreeView1.Nodes[0].Value = @"E:\asem\Visual Studio 2005\WebSites\SDP\users\" + Membership.GetUser().UserName.ToString(); addsubdir(TreeView1.SelectedNode.Value); } void addsubdir(string path) { DirectoryInfo dr = new DirectoryInfo(path); if (dr.Exists) { foreach (DirectoryInfo d in dr.GetDirectories()) { TreeNode t = new TreeNode(); t.Value = d.FullName; t.Text = d.Name; t.NavigateUrl = ""; TreeView1.SelectedNode.ChildNodes.Add(t); } foreach (FileInfo file in dr.GetFiles()) { TreeNode t = new TreeNode(); t.Value = file.FullName; t.Text = file.Name; **string url = file.FullName; t.NavigateUrl = url; //it is changing right here Label1.Text = url;** TreeView1.SelectedNode.ChildNodes.Add(t); } } }
-
identifier expectedoh, yeah... Thanks!!! :)
-
displaying date formatThanks for reply, but I didn't get you. I'm getting the date as it is and I need to display it on a label in a readable format, i.g., as Oct, 27 2007
-
displaying date formatHi, I'm getting date from SQL table, where it is saved as 7/31/2007 12:00:00 AM I need to show this date as July, 31 2007 without the time. is there any easy way to do that? thanks
-
identifier expectedHI, I can't understand what is wrong here:
private const VirtualRoot = @"E:\asem\Visual Studio 2005\WebSites\SDP\users\"+Membership.GetUser().UserName.ToString();
it gives me Compiler Error Message: CS1001: Identifier expected -
pointing to the outside folderwell, yes, it is actually my school project and I don't think I'm gonna upload it to the Internet. is there a way to point to the folder outside of the root folder on my local computer?
-
pointing to the outside folderI'm using Web Developer 2005, on Windows XP Media
-
pointing to the outside folderThanks for reply, Is the re any other way to do it without IIS, cause I don't have it.
-
pointing to the outside folderHi, I need to point to the folder that is outside of the root directory. For example, if my project name is SWB and it is located in SWB folder I need to point to the folder that is outside of SWB folder. Can I use Server.MapPath for that? Thanks!
-
convert to C# from VBwell, there is still something wrong. Here is my code that I'm trying to rewrite in C#. I used while and as I debugged, it is not working properly.
For i = 0 To aFiles.GetUpperBound(0) ' Get the position of the trailing separator. posSep = aFiles(i).LastIndexOf("\") ' Get the full path of the source file. sFile = aFiles(i).Substring((posSep + 1), aFiles(i).Length - (posSep + 1)) Try ' Copy the file. System.IO.File.Copy(aFiles(i), destDir + sFile, False) addToConsoleWindow("Copied " & sFile & " to " & destDir) Catch ex As Exception If overWrite = False Then errorBoxShow(ex.Message) addToConsoleWindow("Skipping..." & ex.Message) Else System.IO.File.Copy(aFiles(i), destDir + sFile, True) addToConsoleWindow("Overwriting old " & sFile & " in " & destDir) End If End Try Next i
Thank you for helping me. -
convert to C# from VBHi, this is very common, but I don't know how. How to write this in C#:
For i = 0 To aDirs.GetUpperBound(0)
as I don't see the step, which is not i++... -
Sending Email exceptionI don't have it in my entire code.
-
Sending Email exceptionhere is the exception: Send failure: System.Web.HttpException: The "SendUsing" configuration value is invalid. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040220): The "SendUsing" configuration value is invalid. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at Register1.CreateUserWizard1_SendingMail(Object sender, MailMessageEventArgs e) in e:\web\myeconpaper\htdocs\Register.aspx.cs:line 64 and here is my code:
protected void CreateUserWizard1_SendingMail(object sender, MailMessageEventArgs e) { CreateUserWizard wizard = (CreateUserWizard)sender; MembershipUser user = Membership.GetUser(wizard.UserName); e.Message.Body = e.Message.Body.Replace("<%PasswordQuestion%>", CreateUserWizard1.Question); e.Message.Body = e.Message.Body.Replace("<%PasswordAnswer%>", CreateUserWizard1.Answer); e.Message.Body = e.Message.Body.Replace("<%DomainName%>", Request.ServerVariables["SERVER_NAME"]); e.Message.Body = e.Message.Body.Replace("<%VirtualDirectory%>", Request.ApplicationPath); e.Message.Body = e.Message.Body.Replace("<%UserLogsOnAs%>", user.ProviderUserKey.ToString()); string mail = e.Message.Body.ToString(); System.Web.Mail.MailMessage objEmail=new System.Web.Mail.MailMessage(); objEmail.Body=mail; objEmail.To = CreateUserWizard1.Email; try { SmtpMail.Send(objEmail); //line 64 ResultLabel.Text="Your Email has been sent sucessfully! Thank You!"; } catch (Exception exc) { Res
-
Sending Email exceptionHI, I'm trying to send an email from my web-site, and it's actually working, everything is pretty cool, but I have this kind of exception:
Send failure: System.Web.HttpException: The "SendUsing" configuration value is invalid. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040220): The "SendUsing" configuration value is invalid. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at Register1.CreateUserWizard1_SendingMail(Object sender, MailMessageEventArgs e) in e:\web\myeconpaper\htdocs\Register.aspx.cs:line 64
The emaiol is sent, but the result label shows me exception, WHY?