 |
|
 |
hi,nice work.
but i want to know how to change the width of the table using mouse
|
|
|
|
 |
|
 |
hi,
i need to inlclude data in to every cell..
how to do that.. please tell me..
thanks in advance...
AK
|
|
|
|
 |
|
 |
I want to Insert image way to Rich Edit.
Thank you so much
|
|
|
|
 |
|
 |
I want to set some contents in the view and make it non-editable.
how to do it..
|
|
|
|
 |
|
 |
I want to write the text next to the table or image, means at top, middle, bottom.
Now I only can write the text at bottom of the table and image.
Please help me!
Thanks a lot
chetan
|
|
|
|
 |
|
 |
i wnat to do the table of three colum inrich text edit both end colum are of single row(merge all row)and middle colum with regular number of rows
chetan
|
|
|
|
 |
|
 |
what mean by this all script:-
"file://ansi//ansicpg1252//deff0//deflang1033{//fonttbl"
"{\\f0\\froman\\fprq2\\fcharset0 Times New Roman;}"
"{\\f1\\fswiss\\fcharset0 Arial;}}"
"{\\*\\generator Msftedit 5.41.15.1503;}\\viewkind4\\uc1";
and
row=?
colum=?
chetan
|
|
|
|
 |
|
 |
Hi taphan, after inserting some pictures in your tapeditor and saving the document as a rtf file, i find that each inserted picture will relate with a paragraph in the rtf file as the following format {\pict\wmetafile8\picwgoal???\pichgoa??? ......(note: it is this picture's metafile data, i think)}.
My question is: in the tapeditor, after clicking on any picture, i want to get the target picture's metafile data contained in the rtf file through programing. How to do ?
Thank you!
|
|
|
|
 |
|
 |
hi
i am working on MDI application with using some word control like bullets numbering alignment etc.
when i use them i can see it on editor but when i an doing getwindowtext then it is not show then plz tell me how to do that
just after then i can what i have to on that
is it require OLE knowledge.
thanks
sachin gupta
sachin
|
|
|
|
 |
|
 |
How is it possible to center the contents of a cell?
I have implemented a lot of the above code into a non-mfc project. I am creating the table at runtime, nothing fancy just a simple 2x2 table. Now to center the text I know the \qc command be used, but when I try to format the paragraph using this the text dissapears. Also when clicking on the table (using \qc) the position of the caret is shunted to the right i.e. when clicking the first column the cursor will remain as a pointer, but moving to the right eventually it turns into text-input.
I have used the exact same rtf code in your app above and it works with no problem, I can't understand why I am unable to make it work in my own app.
|
|
|
|
 |
|
 |
Hi,
there is another problem in this solution (use RichEdit 4.1).
The printer print 65535 pages when there is more then one page in document.
Do you have some solution to fix it?
MilanM
|
|
|
|
 |
|
 |
Sorry,
I have never tested more than 65535 pages.
And at the moment, I don't have any solution.
Tuan Anh Phan
tuananhphan@psv.com.vn
|
|
|
|
 |
|
 |
Hi,
I don't want to print more then 65535 pages.
The document has 4 pages, but the program print many (up to 65535).
The program print 4 real pages and then continue with blank pages.
This problem occours only when I print all pages.
When I set print range 1-4. It works fine.
MilanM
|
|
|
|
 |
|
 |
Problem is urgent. The solution was found? Share them if a solution was found, please.
Regards, Valentin. valneformal@gmail.com
|
|
|
|
 |
|
 |
I want to write the text next to the image, means at top, middle, bottom.
Now I only can write the text at bottom of the image.
Please help me!
Thanks a lot
|
|
|
|
 |
|
 |
I want to get one cell's content. How to directly get it?
Hongjun Ge
|
|
|
|
 |
|
 |
If you want to do this. You must parse the plaint text of rich edit format to get it. First you must know the format of rich text format base on some tags like '\intbl', '\cell' and '\row' to get it.
Data for a table like this as below
-------------------------------------------------
|Row: 0 Column: 0 |Row: 0 Column: 1 |
|Row: 1 Column: 0 |Row: 1 Column: 1 |
-------------------------------------------------
Rich text data
\trowd\trgaph108\trleft8\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trpaddl108\trpaddr108\trpaddfl3\trpaddfr3
\clbrdrl\brdrw10\brdrs\clbrdrt\brdrw10\brdrs\clbrdrr\brdrw10\brdrs\clbrdrb\brdrw10\brdrs \cellx2374\clbrdrl\brdrw10\brdrs\clbrdrt\brdrw10\brdrs\clbrdrr\brdrw10\brdrs\clbrdrb\brdrw10\brdrs \cellx4748\pard\intbl Row: 0 Column: 0\cell Row: 0 Column: 1\cell\row\trowd\trgaph108\trleft8\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trpaddl108\trpaddr108\trpaddfl3\trpaddfr3
\clbrdrl\brdrw10\brdrs\clbrdrt\brdrw10\brdrs\clbrdrr\brdrw10\brdrs\clbrdrb\brdrw10\brdrs \cellx2374\clbrdrl\brdrw10\brdrs\clbrdrt\brdrw10\brdrs\clbrdrr\brdrw10\brdrs\clbrdrb\brdrw10\brdrs \cellx4748\pard\intbl Row: 1 Column: 0\cell Row: 1 Column: 1\cell\row\pard\b\f1\fs20\par
Good luck,
Tuan
|
|
|
|
 |
|
 |
Thanks for your answer.
Now I have another question, I want get the cells data when the cursor in the one cell. I can get the cursor selected position but I don't know how to the the content around the cursor.
Hongjun Ge
|
|
|
|
 |
|
 |
Hongjun Ge,
You can use this code
....
CString szSelectedText;
CHARRANGE cr;
GetRichEditCtrl().GetSel(cr);
szSelectedText = GetTextRange(cr);
....
Regards,
Tuan Phan
|
|
|
|
 |
|
 |
This is an example to input and edit items in the table. I want the table items to be showed firstly. Would you tell me how to directly output the table content? Thanks.
Fead
|
|
|
|
 |
|
 |
What do you mean?
I don't understand your request.
Where do you want the content of table out put?
Regards,
Tuan
|
|
|
|
 |
|
 |
Thank you for your response.
With your table(the table is empty), I can input something. However,what I want is directly to display the table content (not to input with keyboard).
May I use "OnDraw(CDC* pDC)" function or anything else to display the table content? Thank you.
qqz
|
|
|
|
 |
|
 |
If you know the format of RTF. It's very easy.
You can add the flow code to OnInsertTable function to see how it run
...
sTable += row;
for(j=0;j
Try it. regards,
Tuan
|
|
|
|
 |
|
 |
Thanks a lot. It works when I follow your method.
I am not familar with the RTF format. Would I ask you another question?
How to have a space line at the table top(Right now the table is inserted
from the window's top)? That is because I want to display two tabls at same window and hope to have a separate space between the two tables.
Thanks.
qqz
|
|
|
|
 |
|
 |
OK,
U can use the folow code to add a new line before adding the table.
...
CString s = "{\\rtf1";
CString sTable = s + "\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl"
"{\\f0\\froman\\fprq2\\fcharset0 Times New Roman;}"
"{\\f1\\fswiss\\fcharset0 Arial;}}"
"{\\*\\generator Msftedit 5.41.15.1503;}\\viewkind4\\uc1";
//Add this line to OnInsertTable() function
sTable += "\\viewkind4\\uc1\\pard\\f0\\fs24\\par";
//End
CString row,col;
...
Good luck,
Tuan
|
|
|
|
 |