[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
To: "'Framers (framers@xxxxxxxxx)'" <framers@xxxxxxxxx>
Subject: Automating the Find command
From: "Mitchell, Sue" <Sue.Mitchell@xxxxxxxxxx>
Date: Mon, 12 Nov 2001 10:54:12 -0500
Sender: owner-framers@xxxxxxxxx
Does anyone out there have much experience using F_ApiFind? I am trying to search through documents for any text that is in bold. I don't seem to have much luck setting up the find parameters. So far I have the following:
//allocate and initialize 'findParams'
findParams = F_ApiAllocatePropVals(2);
findParams.val[0].propIdent.num = FS_FindCharFmt;
findParams.val[1].propIdent.num = FP_FontWeight;
findParams.val[1].propVal.u.sval = (StringT)'Bold';
I got Bold from the list of FP_fontWeightNames available in the session, I also tried substituting the index into that list instead of the name of the fontWeight.
According to the FDK in order to find FS_FindCharFmt it has "No associated property. One or more of the following additional properties should be specified to tailor the search" and there follows a list of values such as FP_FontWeight or FP_FontAngle etc.
I am relatively new to both C and coding using the Frame SDK so I am really unsure of what the FDK means. Any and all help would be appreciated.
Sue Mitchell
------------------------------------------------
Writing Support Specialist
Cognos Inc
613-738-1338 x5461
This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate, or distribute it; do not open any attachments, delete it immediately from your system and notify the sender by e-mail promptly that you have done so. Thank You.