Monthly Archives: November 2009

*** i moved to my own blog site so to check on my future posts, please go to www.junblogs.com  ***

i have made further enhancements (2 new themes) and modifications (like renaming _type to _theme, removing _ivalue, allowing _value to accept either a logical or integer value then return the same, and some more) inside the class so i decided to rewrite this blog instead of cluttering the bottom part with lots of updates/notes; here which will make it longer.  so here is the revised blog:

as i have said before, i love simple things… Continue reading

*** i moved to my own blog site so to check on my future posts, please go to www.junblogs.com  ***

i have shown easy ways of importing and exporting from word to rtf and vice versa in my past few blogs regarding rtf and automation.  what i have not mentioned is what will happen when a  word document has a table inside.

what will happen is the rtf control will not respect the boundaries of both cells and the tables itself.  see the image below (standard way):

mike gagnon
told me yesterday that he is interested to see if… Continue reading

*** i moved to my own blog site so to check on my future posts, please go to www.junblogs.com  ***

i woke up very early today at 2:30 am because i have to drop my nephew and my wife on my nephew's school for their field trip in mall of asia and enchanted kingdom.  i was back at our house after 45 minutes and then i realize i can no longer go back to sleep.  worse is i am not in the mood to watch cable fearing i will wake up my mom due to the tv sound and… Continue reading

*** i moved to my own blog site so to check on my future posts, please go to www.junblogs.com  ***

rtf is a very useful tool in saving and preserving of formatting on images and text inside a memo field as i have shown in my enhanced rtf tool.  also speaking of that tool, i have used there commands i learned inside foxite archive in the printing of the current content of the rtf control.  however, a new question has been raised just last night on how to print said rtf content from the memo field together… Continue reading

*** i moved to my own blog site so to check on my future posts, please go to www.junblogs.com  ***

i have finished isolating the rtf control from my project so i am now giving it to you as a basis or for whatever you may want to do with it.

some more features i have not mentioned earlier is "hot tracking" inside rtf.  it means that when you clicked on a text inside the rtf control, it will show you the formatting it currently has like bold, italic, underline, alignment (justification), font name, and font size; by changing… Continue reading

*** i moved to my own blog site so to check on my future posts, please go to www.junblogs.com  ***

most people don't realize that the saveas() event of office automation
has a 2nd parameter, where you can select the format of the file you
are saving.  and so i will be showing how this 2nd parameter can become
very useful to most of us especially in importing and exporting of
office files.  you will also see later how it has been instrumental to
my enhanced rtf tool which i will soon share as well here.

with the change… Continue reading

in connection with my "going beyond.." blog, i claimed that my app can open a word document aside from an rtf file.  excerpt follows:

also in figure 3, you will see the action buttons i have included for
the rtf control.  from left to right:


b.   open a word document (ctrl + w).  now this needs a very simple manipulations
using vfp functions, see how later

e.   export to word (ctrl + d)

 

commands i used follows:

 

  1. opening of word documents:

local lcfile
lcfile = getfile("doc,docx")
thisform.contrtf.olertf.textrtf = filetostr(lcfile)

and… Continue reading

inspired by christian bonafos’  rtf tool (many thanks!), i decided to make my rtf tool beyond the concept of copy-pasting. 

i got stuck though somewhere in the insertion of an image from a file which involves two steps.  one is to open an image file via getpict() and placing it into clipboard but with the help of cesar, i was able to do that. 

the second step is of transfering that image in the clipboard into the rtf control without the need of pressing ctrl+v or right clicking rtf and choosing paste.  yes those can be done and… Continue reading

i actually posted this technique inside www.coderisland.com to lend assistance to that site.  but since it is an entirely "young" site, it is normal that only a few people to date still knew of its existence.  and likewise inside foxite forum, as what i have been saying for so long, it will get lost sooner or later along the myriad of solutions we are giving there.  and so i decide now to create another blog here in weblogs about this so it can be seen by a lot more people who might want to use this approach to achieve hotkeys… Continue reading