Creating a letter in custom reports
Moderators: Moderators, Tech Support
Creating a letter in custom reports
What is the best way to create the body of a letter in a custom report. I was hoping for a memo field or something capable of word wrapping. The only method I have found so far is to create a series of labels on the report and make each line of the letter a caption in the different labels. There has to be a better way.
-
- Program Development
- Posts: 1225
- Joined: Fri Sep 05, 2003 11:43 am
- Location: PowerChurch Software
- Contact:
Re: Creating a letter in custom reports
Did you try creating a mailmerge letter in Word? You create mailmerge files in PowerChurch that can then be pulled into Microsoft Word to have it do the merge.
-
- Tech Support
- Posts: 3006
- Joined: Thu May 13, 2004 9:59 am
- Location: PowerChurch Software
- Contact:
Re: Creating a letter in custom reports
Jeff's suggestion is probably the easiest and best. That gives you formatting tools in Word, rather than being stuck with only the options that the CR Writer has for labels or fields.
If you really, really want to make this a custom report, you can insert a field into the report with the following expression:
This would be a text file saved in the PowerChurch Plus program directory. To reference a file anywhere else, you would need a full file path:
This must be a plain text file, meaning no font formatting or much of anything beyond line breaks is available.
You can read all about that function here: http://msdn.microsoft.com/en-us/library ... 80%29.aspx
If you really, really want to make this a custom report, you can insert a field into the report with the following expression:
Code: Select all
filetostr("myletter.txt")
Code: Select all
filetostr("C:\Users\Rob\Documents\myletter.txt")
You can read all about that function here: http://msdn.microsoft.com/en-us/library ... 80%29.aspx