Can anyone help me to add an image in crystal report? I write in C#. In my access database, I store the path of the image , not the real image. The real image is in another directory. Thank you very much.
cauvang
Posts
-
how to add image in crystal report -
about richtextboxI know that if I used PlainText, this problem wouldn't happen. But I have to use UnicodePlainText because my file is Vietnamese, it needs font Unicode.
-
about richtextboxhere is my function to load the file void OpenFile() { openFileDlg.DefaultExt = "*.txt"; openFileDlg.Filter = "Text Files|*.txt"; if(openFileDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK && openFileDlg.FileName.Length > 0) { rtxt.LoadFile(openFileDlg.FileName, RichTextBoxStreamType.UnicodePlainText); } }
-
about richtextboxI have a problem when using richtextbox. I use richtextbox to display the content of a file. In the richtetxtbox, it automatically inserts a space in the first word. For example, in my file " Doctor John is very kind". And in my richtextbox "D octor John is very kind". Why do I meet this problem and how can I overcome this problem? Thanks a lot.
-
How to convert a string from CString to LPTSTRI'm really sorry! I want to convert a string from CString(MFC) to LPCTSTR but the example is really stupid( it was written in WTL !!!). Now I wonder how to use a WTL class ( written in WTL,used WTL CString ) in a MFC application. The class is so important and i need it in my MFC project.However,it was written in WTL using WTL CString.Help me!!
-
How to use a class written in WTL 7.0 in an MFC applicationI have a class written in WTL 7.0 but I want to use it in my MFC application.How can i do that. The class use WTL CString but I think it isn't recognized in MFC I tried to add the class into my project but I got the following code when I conpiled: fatal error C1010: unexpected end of file while looking for precompiled header directive Can you help me? Thanks a lot!
-
How to use a class written in WTL 7.0 in an MFC applicationI have a class written in WTL 7.0 but I want to use it in my MFC application.How can i do that. The class use WTL CString but I think it isn't recognized in MFC I tried to add the class into my project but I got the following code when I conpiled: fatal error C1010: unexpected end of file while looking for precompiled header directive Can you help me? Thanks a lot!
-
How to convert a string from CString to LPTSTRThanks for your helping me. But I don't want to return a LPTSTR, not a LPCTSTR.Anyway, thanks you a lot.
-
How to convert a string from CString to LPTSTRthanks again, but it still give me that error.
-
How to convert a string from CString to LPTSTRThanks for your answering, but when I try doing the following code LPTSTR CMainDlg::XuLyChuoi() { char *tmp_sz = new char[1000]; ::GetWindowText(GetDlgItem(IDC_EDIT1),tmp_sz,1000); CString s = tmp_sz; int index = 1; while ((index=s.Find("x", index)) != -1) { CString s1 = s[index-1]; s1+= s[index]; CString s2 = s[index-1]; s2+= "*"; s2+= s[index]; s.Replace(s1, s2); } tmp_sz = (LPTSTR)s; return tmp_sz; } I have the error: error C2440: 'type cast' : cannot convert from 'class WTL::CString' to 'char *' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called Error executing cl.exe. - 1 error(s), 0 warning(s) Can you explain?Thank you.
-
How to convert a string from CString to LPTSTRI wonder how to convert a string from CString(MFC) to LPTSTR. I want to use my string in CString as a LPTSTR but i don't know to convert it.Please help me! Thanks a lot
-
how to get a random number between 0 and 1I want a fucntion to generate a random number between 0 and 1, and each time this function is executed, it will give me a diffent value (independent to time).Can you help me?Thanks a lot.
-
how to get a random number between 0 and 1I want to get a random number between 0 and 1.Can you help me?Thanks a lot.
-
how to calculate an expressionI have an expression including sin,cos,and log. Example 3*sin(4)-2. I want to know how to calculate it. Can you help me?Thanks a lot.
-
update from dataset to databaseCan you tell me a little more?I searched in MSDN but I could't find the way to solve this problem.Thanks
-
update from dataset to databaseMy dataset has 2 tables having foreign relationship. After I update these 2 tables in my dataset, how can I update them from my dataset to my real database? Thanks.