hyperlink - Find matching folder in Crystal Reports -
hyperlink - Find matching folder in Crystal Reports -
i'm trying homecoming folder path, given variable partially matches, using crystal reports syntax.
for example, given variable {tbl.projectnumber} = 0152
, homecoming folder path z:/work/projects/0152 acme construction
directory z:/work/projects
, z:/work/projects
set as:
... z:/work/projects/0151 lumber corp z:/work/projects/0152 acme construction z:/work/projects/0153 computer barn ...
ultimately pass out path 'hyperlink file' path.
the code below gets me close, there many text inconsistencies between database field names (.projectname) , actual folder names. such .projectname 'lumber corporation', actual folder hyperlink /0151 lumber corp. that's why need @ number.
stringvar text:=""; text:= "z:/work/projects/"&{tblprojectsinfo.projectnumber}&" "&{tblprojectinfo.projectname}
** update: looking siva. need text string of path matches project number, such "z:/work/projects/0151 lumber corp". in formula within crystal reports 'format field' --> hyperlink, conditional hyperlink file.
it works provided code, except produces broken links (due corp vs corporation, misspelling, etc.). , thoughts appreciated.
** projectnumber
4 digit numeric. projectname
indeterminate length string.
** inconsistent naming in illustration fixed.
** extraneous info removed.
final updatethanks looking. no solution found, ended exporting projectname
, projectnumber
fields .csv , doing batch rename on folders remove inconsistencies.
hyperlink crystal-reports
Comments
Post a Comment