11-11-2010 12:28 AM
i need to create a table using Microsft word object library andn example is already there i.e. word2000demo But some constants have nodescriptions or details given.e.g.
caErrChk (Word_GetProperty (columnsHandle, NULL, Word_SelectionBorders, CAVT_OBJHANDLE, &bordersHandle));
caErrChk (FmtAllBorders (bordersHandle, Word_BorderLineStyle, WordConst_wdLineStyleSingle));
caErrChk (FmtAllBorders (bordersHandle, Word_BorderLineWidth, WordConst_wdLineWidth150pt));
what is the range and values of Word_BorderLineStyle and WordConst_wdLineWidth150pt in the above functions, where can i find details about it ??
Moreover i want to have internals borders as well like the EXCEL grids how can i create that of customized Widths ?? Similarly the effect of two rows MERGED together and in the next column two rows being separated (Without Merge)??
thanks
11-11-2010 05:23 PM
Hi Matrix39,
You can find a lot of information about the inner-workings of these functions and constants by taking a look at the word2000.h file. This is most likely at the following path on your computer:
C:\Program Files\National Instruments\CVI<version>\toolslib\activex\word\word2000.h
From looking at this file, you can search and find that WordConst_wdLineWidth150pt is an enum defined to have the value of 12. By looking at the other entries in the WordEnum_WdLineWidth, you can see what the range of values for that field will be.
Also, by searching for WordConst_wdLineStyleSingle, you can find the enum WordEnum_WdLineStyle. This enum defines all the valid line styles which can used with the type Word_BorderLineStyle.
By searching for either "cell" or "width" you can find which functions to use to modify the width of cells in your table.
Hopefully this will provide you with a good starting point for understanding what's going on.
Best Regards,
John M
07-28-2011 08:05 AM
Hello, is there any discription available of word2000.fp for CVI. I already installed MSDN from Microsoft, but no help function is working.
What I realy need is to open a document linked with a "template.dot" and then copy some "AutoText" into the new created document.
I have realy no Idea what to do.
Please give me a hint
Thanks
Johann