Writing references letters for case of, the personal, the character – free reference letters or samples references letters will always guide you in a better way. If you have nothing fine to say about a person it is fine to say nothing at all, and merely decline to write a reference letter. The similar applies to giving references over the phone – negative verbal references could be deemed slanderous. There is also inference for the verbal references as well as writing references letters stemming from Age Discrimination Laws along with Equality Legislation as well as related best practice. Free Download Student Reference Letter in Doc. File Format • DOC Size: 12 KB As the name suggests, this reference letter sample is one which is most commonly required by students and can easily be downloaded from the internet. This letter of recommendation has a personal tone and is addressed directly to the recipient. If you are referring someone to be enrolled into a school or college, this letter comes in handy since there is always stiff competition and the elite schools and colleges almost always prefer to admit students with strong letters of recommendation. Use this sample letter of reference as guide for the structure and contents of a personal recommendation or reference. It should not. This reference letter template can be modified when a colleague, student, or acquaintance reaches out to you about a employee reference letter. Download this sample as Word Document. Letters of recommendation depict the conduct. Microsoft Word 2003, 2007, 2010. 20+ Employee Recommendation Letter Templates HR Templates. A reference letter template may be an employer reference letter, character reference letter, bank reference letter, student reference letter, family reference letter. A reference letter template is written in response to request for a reference letter. A reference letter should be written in business letter format with proper opening. Work Reference Letter to Download for Free. File Format • DOC Size: 12 KB Yet another reference letter template among free reference letter templates, the work reference letter template is for a situation when you want to apply at a company or organization. Like it is the case with most work reference letters, the tone of this letter too needs to be professional with the sender/writer of the letter highlighting your professional highs. This template too can be downloaded for free from the internet. Example of a Professional Reference letter PDF. File Format • DOC Size: 12 KB If you are applying at a hotel or a restaurant for the position of a manager, your previous employer might want to pen a personal reference letter to make your selection process at the new workplace a little easier. Usually most reference letters comprise three paragraphs with each paragraph dealing with the applicant’s tenure or work experience with the previous organization, his/her skills and how capable he or she would be in the current position that he or she has applied in. Free Download Sales Job Reference Letter in Microsoft Word. File Format • PDF Size: 451 KB A reference letter template for employment purposes should ideally start with a salutation and progress to the three basic paragraphs that cover the introduction and background of the employee, the skills or highlights of the job he/she has held and why the person would be an asset for the organization where he/she is seeking employment. The other aspect that makes this reference letter template different from the rest is by virtue of the summary and concluding paragraph that the letter ends with. Free Download Reference Letter for a Friend. File Format • DOC Size: 12 KB If you have a friend who is seeking employment with a person or company or has applied somewhere, you can write a reference letter for him/her. This template of a reference letter can easily be downloaded from the internet and starts with your connection or relationship with him or her. Not only for jobs, you can write a reference letter for your friends in other situations also; for example, when he/she is looking for a place on rent. If you have married couples as friends and they are looking forward to adopt a child and need a reference letter, you can help them in such trying situations also. Character Reference Letter to Judge in Word for Free. Automation lets you use the capabilities and features of Microsoft Office products, such as Microsoft Office Word or Microsoft Office Excel, in your Microsoft Dynamics NAV 2009 application. In this walkthrough, you will implement Word Automation from a Customer Card in the Classic client and RoleTailored client. You will set up the Customer Card so that if the customer has bought goods for more than LCY 2,500 during the past year, then the user can click a menu item or action to automatically create a letter in Word that offers the customer 3% discount. The letter will include information about the customer, such as the customer's name and the address, and the name of the contact to whom you will address the letter. This walkthrough illustrates the following tasks: • Creating a template in Word that will be used for Word documents that are created from the Classic client and RoleTailored client with Automation. • Creating a codeunit and declaring the Automation variables that are required for using Microsoft Office Word Automation. • Writing C/AL code in the codeunit to instantiate the Automation object that creates a Word document from a template. • Adding C/AL code to the Automation codeunit to transfer data from a table record to a Word document. • Calling the Automation codeunit from a menu item on a form or an action on page. Most information that you need to transfer to Word is in the Customer table. The Customer table contains a FlowField called Sales (LCY) that contains the aggregated sales for the customer. For this walkthrough, you are learning about Automation, so you use the existing value. In a real customer installation, you would need to set up an appropriate date filter to get the sales for the past year only. You also need to retrieve the information about your own company that you will use in the letterhead and in the greeting of the letter. This information is contained in the Company Information and User tables. Where to Place Automation Code. You put all code in a separate codeunit that is called from a menu item on the Customer card. You must consider the following issues when you are deciding where to place the code that uses Automation: • The Automation server must be installed on the computer that compiles an object that uses Automation. If you must recompile and modify an object on a computer that does not have the Automation server installed, then you must modify the code to compile it again. We recommend that you isolate code that uses Automation in separate codeunits. • Performance can be an issue if extra work is needed to create an Automation server with the CREATE system call. If the Automation server is to be used repeatedly, then you will gain better performance by designing your code so that the server is created only once instead of making multiple CREATE and CLEAR calls). These two issues may clash, and you will have to make some tradeoffs that are based on the actual context in which your code will be used. In this walkthrough, you are not putting the Automation code on the customer card but are isolating it in a separate codeunit. Performance can be improved by putting the code on the Customer card because you do not have to open and close Word for each letter that is created in the session. You can work around this problem. If Word is already open when it is called from the code, then the running instance is reused. You can manually open Word or do not close Word after creating the first letter. Using Word in This Example. You will extract and transfer data one customer at a time. You also will initiate this processing and the subsequent processing in Word from the customer card. This approach to mail merge is different from a mail merge that you can achieve with C/ODBC, which is better suited for bulk processing when creating a large number of letters. You will insert fields into the Word template and give these fields convenient mnemonic names that correspond to the names of the C/SIDE record fields that you are using. To make this work, your C/AL code must make two extra calls to Microsoft Office Word. You must call the ActiveDocument.Fields.Update method before using the fields. After you have transferred all the information, you must call the ActiveDocument.Fields.Unlink method. This ensures that you can successfully use the Word fields as placeholders. In addition, while you can name the fields Customer or Address, you must reference them by indexing into the Fields collection of the document. This can make the C/AL code harder to understand. • Open Word and create a new document. • Click where you want to insert the fields. • In Word 2007, on the Insert tab, in the Text group, click Quick Parts, and then click Field. • In Word 2003, on the Insert menu, click Field. • In the Categories list, select Mail Merge. • In the Field names list, select MergeField. • In the Field Name box under Field Properties, type Contact. This field will display the name of your contact person at the customer site as taken from the Customer table. • Repeat steps 2 through 5 to add the remaining fields as follows. • On the View menu, click C/AL Locals, and then click the Variables tab. • On a blank line, type wdApp in the Name field and set the Data Type field to Automation. • In the Subtype field, click the AssistEdit button. The Automation Object List window is displayed. • In the Automation Server field, click the AssistEdit button. • In the Automation Server List, select Microsoft Word 12.0 Object Library if you are running Word 2007 or Microsoft Word 11.0 Object Library if you are running Word 2003, and then click OK. • From the list of classes in the Automation Object List, select the Application class, and then click OK. • Repeat steps 2 through 6 to add the following two Automation variables. CREATE(wdApp, FALSE, TRUE); This statement creates the Automation object with the wdApp variable. • The first Boolean parameter in the statement ( FALSE) tells the CREATE function to try to reuse an already running instance of the Automation server that is referenced by Automation before creating a new instance. If you change this to TRUE, then the CREATE function always creates a new instance of the Automation server. • The second Boolean parameter in the statement creates the Automation object on the client. This is necessary to use this codeunit on a page in the RoleTailored client. If you do not use this codeunit in the RoleTailored client, then you can use the statement CREATE(wdApp); instead. For more information, see. • Enter the following lines of code to add a new document to Word that uses the template that you designed earlier. If required, replace C: Documents and Settings All Users Templates with the correct folder path to the template that you defined in the procedure. TemplateName:= 'C: Documents and Settings All Users Templates Discount.dot'; wdDoc:= wdApp.Documents.Add(TemplateName); wdApp.ActiveDocument.Fields.Update; Because the Add method of the Documents collection requires that you pass the path to the template by reference, you must set up the TemplateName variable to hold this information. You will get a compilation error if you put the path into the call as a literal string. The Documents property returns a Documents collection that represents all open documents. You can also see that the Documents collection object has an Add method, and that the Add method has the following syntax. Expression.Add(Template, NewTemplate, Document Type, Visible) expression is a required argument, and it must be an expression that returns a Documents object. All the arguments are optional. You will use Template to open a new document that is based on your template. For the syntax in the C/AL Symbol Menu, note that the Documents property returns an object of type DOCUMENTS, which is a user-defined type. The property returns a Documents class or IDispatch interface. This information helps the compiler perform a better type check during compilation. The following statement can also pass both the compile-time and the run-time type checks. WdDoc:= wdApp.Documents.Add(TemplateName); Finally, the Add method returns a Document class. While you did not need to declare a C/AL variable for the interim Documents class, you have declared a variable for the wdDoc return value. The third line contains a call that must be made to ensure that the template works as intended. WdRange:= wdAPP.ActiveDocument.Fields.Item(1).Result; wdRange.Text:= Contact; wdRange.Bold:= 1; wdRange:= wdAPP.ActiveDocument.Fields.Item(2).Result; wdRange.Text:= Name; wdRange.Bold:= 1; wdRange:= wdAPP.ActiveDocument.Fields.Item(3).Result; wdRange.Text:= Address; wdRange.Bold:= 1; You cannot use the fields directly as variables and make an assignment such as Fields.Item(3):= Address. Instead, you use the Result property of the field. This property returns the result of the field as a range. You place this range in the wdRange Automation variable that you declared. You then set the Text property of the range to the desired values, which is the name of your contact person and the name and address of the customer. Finally, you add bold formatting. The data you are transferring must be in text format. If it is not in text format, then you get a compilation error. WdRange.Text expects arguments to be of type BSTR, which maps to either Text or Code. This means that any data that is not Text or Code must be converted before it is passed to Word. To convert a field to Text, you use the FORMAT function. All the fields that are transferred in this step are in text format, so no conversion is needed and the FORMAT function is not used. However, in this example, you also need to transfer the Sales (LCY) field, which is a Decimal field. To see how to convert the Sales (LCY) field, go to the next step. • To transfer and format the data from the Sales (LCY) field, add the following code. Although this code will work, you must add a few things to make it complete: • We recommend that you do not use a hardcoded template name. You should keep the template name in a table, and the user should select it from a page. You can then have different templates for different types of letters that you want to send to your customers. • You should add some error-handling code. For example, the CREATE call fails if the user does not have Word installed or if the installation has been corrupted. You should check the return value of CREATE and give an appropriate message if it fails. • The user should get a message if the customer does not qualify for the discount. In the example, the codeunit closes without any message. • Open Object Designer, and then click Form. • Select the Customer Card form, and then click Design. • Right-click the Customer menu button, and then click Menu Items. • Select the last line in the list of menu items, and then click Separator to insert a separator line. • In the next line below the separator line, in the Caption field, type the text Word Letter, which will appear in the menu. • In the Action field, click the lookup button, and then select RunObject. • In the RunObject field, click the lookup button, and then select the codeunit that you have created. • Save and compile the Customer Card form. To call the codeunit from the Customer card page in the Classic client. • Open Object Designer, and then click Page. • Select the Customer Card page and then click Design. • At the bottom of Page Designer, right-click a blank line, and then click Actions. • To add a new action, locate the action container with the subtype set to ActionItems. • Right-click the next line after the ActionItems container, and then click New. • In the Caption field of the new line, type Word Letter. • Set the Type field to Action. • With the new action selected, on the View menu, click Properties. • In the RunObject field, type codeunit Discount Letter. The letter that you have just created only contains six fields and no body text. Before you can use this letter in an actual situation, you will need to add some more fields, such as the name and address of your own company, the date, and the currency code, and the main text of the letter. It will also need some formatting to make it look more attractive. If you alter the order in which the fields appear in the template, you must change the numbering of the fields in the codeunit to ensure that the correct data is inserted into the appropriate fields.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2018
Categories |