Pulling SQL fields in Word Letters

Hi All,
We have a customised real estate application which maintains all our customer information and sql server is used as the database. There is a feature in the app to send bulk letters to all the customers. The customer name and other unique details are pulled
from the sql database.  The letters are created using a software called report writer from softvelocity. Problem is that it take a lot of time to create the reports using reportwriter and the formating is always a mess.
Question1: Can we create these letters in Microsoft Word and get word to pull the respective details from the SQL database. If we are sending the letters to 300 customers, Word should create 300 letters as we have to attach the letters to the customer record.
Question2: If not word what other tools are available that allows the creation of letters linking with sql database
Regards,
Jaggy

Hi jaggy99,
As per my understanding, you have a customized application which maintains all customers’ information and database is SQL Server. You can use the application to send letters to all customers, but it takes a long time to write the letters and the content
is a mess, so you want to solve the problem by other methods.
SQL Server Reporting Services includes a complete set of tools for you to create, manage, and deliver reports, and APIs that enable developers to integrate or extend data and report processing in custom applications. We can achieve your goal by creating
a report and configure data-driven subscription for it. For more information, please refer to the following steps:
Create and deploy a table
1. Open SSDT(SQL Server Data Tools), on the File menu, point to New to create a new project.
2. In Solution Explorer, add a new report.
3. Open the project, in Report Data pane, add a dataset used to retrieve data.
4. Click and drag the field from dataset into the appropriate box in the tablix.
5. In Solution Explorer, right-click the project name and click Properties, configure the properties, then click OK.
6. Right-click the project name and click Deploy.
Create data-driven subscription
1. Open Report Manager, and locate the report for which you want to create a data-driven subscription.
2. Hover over the report, and click the drop-down arrow.
3. In the drop-down menu, click Manage. This opens the General properties page for the report.
4. Select the Subscriptions tab, and then click New Data-driven Subscription.
5. Select the delivery extension and data source for the subscription.
6. Specify a query that retrieves subscriber data.
7. Specify delivery extension options.
8. Specify report parameters for the subscription.
9. Specify when the subscription is processed, then click Finish to save the configuration.
Reference:
Create a Report (Reporting Services)
Deploying Reports
How to create Data Driven Subscription in SSRS
If you have any questions, please feel free to let me know.
Thanks,
Wendy Fu

Similar Messages

  • Typing SQL in an SQL field in CR always generates error message

    Hello,
    I am working with Crystal Reports 2008 (CR Developer, Version 12.1.0.892) Product Type: Full. This software is locally installed on my working computer, running on a Windows 7 system. The database I use is Progress version 10.2B01. I connect through an ODBC connection to the database.
    As a software developer, developing reports in CR is not my primary task, yet I have done some good work up to this date in Crystal. I have only one major problem:
    I can not create any SQL fields in the report, e.g. despite how I write the expression in the SQL language, it would not compile. The following error message appears: (I couldn't copy the error dialog into this message)
    Error in compiling SQL Expression:
    Database Connector Error: 'DAO Error Code: 0x03
    Source: DAO.Database
    Description: Syntaxerror in queryexpression 'SELECT
       Customer.'Customer Name".'.
    To make it as easy and basic as possible, I have tried the above excercise using C:\Program Files\Business Objects\Crystal Reports 12.0\Samples\En\DB\xtreme.mdb database. The SQL just won't work! Not even the most basic SELECT. I have really tried and searched Crystal Reports Online Help. A college of mine gets the same error message.
    I would be greatful if someone could give me a hint, what could be wrong. You may post me a simple SQL query which works together with the xtreme.mdb database. (Drawing fields with the mouse onto the report creates nice output - but I really want to accomplish output by creating and inserting an SQL field using SQL!).
    Greetings from Karlstad in Sweden!  Ivo K. (@inport.com)

    Hi
    Try to see what all tables are accessed by data source. and see if there is any lock on that..
    If some other job is accessing that table - then there might be lock on that which is causing failure..
    1) Try looking at ST22 dump also..
    2) Try to do RSA3 in R/3 and if see if its is fetching any records or not..
    Hoep it helps
    --SA

  • SQL field (not large enough) - Create Report Dialog - User Defined Reports

    When creating a user defined report it would be good to have the sql field the query is entered into bigger. The tiny size is awkward for large queries.

    When you increase the window size, we increase horizontally but not vertically. I will log an enhancement request to see if we can get it longer.
    -- Sharon

  • Document info fields in Word won't update when placed in document header-section

    Dear all,
    I have a document library using 3 Content Types with metadata columns and a Word-template.
    The values of these metadata columns should be displayed within the Word-documents created from content type.
    So I've inserted document info fields into the Word-template to display them.
    But unfortunately the placeholders are not updated when opening the document again, after metadata values had been changed e.g. by using the edit-form within the list.
    From what I have seen so far, this only refers to document info fields resident in header or footer sections. 
    But this is where I need to place them.
    Does anybody know this issue and has an idea of how to fix it?
    Could VBA be of use here?
    Best regards,
    Ben

    Hi,
    Based on your description, document info fields in Word won't update when placed in document header-section.
    Per my test, document info fields in Word will update when placed in document header-section.
    Refer to the following article about Add SharePoint Metadata to Word Documents:
    http://whitepages.unlimitedviz.com/2011/02/using-document-templates-with-lists-and-content-types-in-sharepoint/
    https://www.premierpointsolutions.com/training/help-and-how-to-articles/add-sharepoint-metadata-to-word-documents/
    If I misunderstanding the issue, Please offer a screenshot about your issue.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Header Information Including a Max(FieldN) and then Pulling the field(Date) When Max Occurred

    Post Author: Skyeyes
    CA Forum: General
    Can anyone assist us as we have several columns we are displaying. One column called FieldN we gather the MAX from the column and want to place the Max(FieldN) in the header--this works.  Also next to FieldN where it is MAX we want to pull the field(Date) that MAX happened.  When we do the formula, it pulls the first date in the list, not of the MAX.
    MAX(FieldN)  & (Date)
    Any ideas would be helpful.  Thanks.

    Post Author: yangster
    CA Forum: General
    Give this a trystringvar fieldNDate := totext(FieldN)&totext(DATE);stringvar maxDate := nthlargest(1, fieldNDate);stringvar Datedisplay := right(maxDate, 6);so essentially you are trying to find the max date associated with the max fieldNthe nthlargest will find you the largest fieldN and its associated date since there could be multiple dates associated with the max fieldN fieldthe last string is just to strip the field and display only the datethis should work out you might have to tinker with the right to get your formatting.

  • Exporting acrobat fields into Word 2007

    Hi all,
    I have a client who had an adobe document on his website which user fill out and then submit using Outlook. He now wants to create a form letter (in Word 2007) by using the data that the users submitted on the acrobat document.
    In a nutshell, I have to export the adobe fields into Word. Being a total novice, I don't even know if this is possible?
    I am thinking along the lines of some sort of a mail merge.
    Thanks in advance.

    Have you exported in the various formats and examined the created file?
    FDF and XFDF are special formats for Acrobat forms.
    Text is a text with tab delimited. The field names comprise the first row and each form's data is then listed under the first row in the same order as the field names in row one.

  • Export database fields to Word

    I have an application used for entering news release
    information into a database. The person who is responsible for the
    new releases used to send me the information in a Word document and
    I would copy and paste it into an html page.
    Now the information can be entered via a form in the browser
    which takes care of the web site, however, the Word document still
    needs to be sent to the newspapers.
    I have figured out how to export the files into Word and what
    steps are needed in Word to format it to be sent to the newspapers.
    I want to add a link to the application that will that will
    automate this process.

    The usual method for inserting data fields to Word is through
    a merge document.
    Microsoft does not recommend that you run Office applications
    on a Web server, so this is better accomplished through a non-Web
    application.
    Another alternative would be to construct the document using
    Word XML (mso:xml). You can find a reference for the formats at
    http://msdn.microsoft.com
    Good luck!

  • Email Attachment SQL field giving error without attachment...

    Hi All,
    I'm running Apex 4.1.0.X on 10g and trying to solve the following problem with little success.
    After reviewing the OBE on Viewing and Downloading BLOBS within Apex 3.1 from here -http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm...
    I was able to create a simple form to send an email with an attachment as well as a simple report from which to view the stored email messages send and the attachments associated with them. All good, all working just fine. Problem comes about when I try to send a message without an attachment. When I do this, I get the following error:
    ~~~
    ORA-20022: Null value supplied for parameter p_attachment.
    ~~~
    I have two process...one to store the message content in the table (Process Row of EMAIL_NOTIFICATIONS with source type as Automatic Row Processing DML) and a second to send the email which is just the canned mailer in Apex. I have defined the Attachment SQL field as follows:
    select attachment, att_file_name, att_mime_type from email_notifications where subject = '&P88_SUBJECT.' and body = '&P88_BODY.' and sender = '&P88_SENDER.'...There is no primary key on the table as there is a high likelihood that duplicate messages will be sent....so I am attempting to use the combination of three fields together to make sure that the correct BLOB is attached to the outgoing email....with no where condition...the wrong BLOBS were being attached....tried using ROWID as a unique record but it kept coming back null and no BLOBS could be attached.
    Anyway....hope I haven't made the issue too unclear.
    Thanks for any help. Mike
    Quick Edit...Just want to reiterate...as strange as the above "Attachment SQL" used in the canned Email Process seems...in testing it does seem to do the job....only snag is when no attachment is added....in case the error is presented and no record was saved to the table or sent in email.....My hope would be some crafty way in which to NOT use attachment SQL when there is no attachment.
    Thanks!
    Edited by: Twinkle Berry Sunshine on Jun 26, 2012 9:56 AM

    Yes...you can attach BLOBS to emails...there is a MIME_TYPE attribute which is automatically inserted with the BLOB...I have this successfully working emails with attachments stored as BLOBS....so long as: 1.) There "MUST" be an attachment 2.) I use the syntax you said should work... where subject = '&P88_SUBJECT.' The documentation talks of using pl/sql method which I'll now try instead of what I was using:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_mail.htm#CHDHCEGF

  • I would like to fill up the following pages. If I fill up the first fields with some letters, they m

    I would like to fill up the following pages. If I fill up the first fields with some letters, they multiplay each other in several other fields, there I don't want them. Can you help me?

    You can't change that, and we can't either. It's an error in the creation of the form. ALL of the fields that "auto populate" have the same name and description, so when you fill one, the rest fill by default with the same info. You'll need to contact the author of the form and inform them of the error.

  • When typing the existing words/letters are deleted?

    When typing the existing words/letters are deleted?

    Hi
    Please find the link given below might help you to fix your issue.
    HP and Compaq Desktop PCs - Wired Keyboard Troubleshooting (Windows 7)
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • SQL query requested to pull one field out of multiple records

    Post Author: ralph.devlin
    CA Forum: Data Connectivity and SQL
    We use Track IT to manage our ticket base. We have parent work orders and child assignments that I am trying to report on. What I want to do is create a view, or even if this can be done in a formula, is pull data from the main work order, which in our scnerio and accorindg to the database diagrapm is WORKORDERTYPEID = 0, It will pull the TASKS.RESPONS field from that WO. Then it will compare the TASKS.PARETNWOID to WOID and if WORKORDERTYPEID = 1 then it needs to return the TASKS/RESPONS field of that record, and there may be three records or so. Then What I may need it to do is organize it maybe into seperate columns so I can add each one to Crystal keeping in mind that it will need to link those records to main WOID of the parent so it will display on one line. Any ideas
    Ralph

    Post Author: ralph.devlin
    CA Forum: Data Connectivity and SQL
    Ok I tried that and it seemed to work fine, here is an aexample of the data returned
    168458
    Lane, Carrie
    Ralph Devlin
    Ralph Devlin
    168458
    PHX - Training Room
    SM - 8th Fl Conf Room
    NULL
    NULL
    168458
    6/20/2008 3:30:00 PM
    Video Conference
    0
    168458
    Lane, Carrie
    Ralph Devlin
    Luis Estrada
    168458
    PHX - Training Room
    SM - 8th Fl Conf Room
    NULL
    NULL
    168458
    6/20/2008 3:30:00 PM
    Video Conference
    1
    Using the last column which is the workordertypeid, I was able to elimate the first row of data, which is the parent work order, but see how it is returning the technician name twice, where the second row returns me as the primary and then the technician on the assignment WO as well, which I want. In Crystal I have it only selecting the rows with the 1 is the last column, since those rows have the data arranged how I want them to be.
    Once issue that just arose, is what if we only had one work order that we wanted to report on in the subreport. since the WO will get a 0 in the last column, it will never be selected in the report. Is there a way to either us a statement that selects it if it is the only WO listed compared by the WOID field, or if there is a way in SQL, to get what is showing in row 2 to be the only row returned back so I can then show all work orders regardless if they are an assignment
    Here is my current SQL query
    SELECT     T1.WOID, T1.REQUEST, T1.RESPONS, T2.RESPONS AS Addtech, T2.PARENTWOID, T1.LOOKUP2, T1.TaskLookup3, T1.TaskLookup4, T1.TaskLookup5,                       T1.WO_NUM, T1.DUEDATE, T1.WOTYPE3, T2.WorkOrderTypeIdFROM         dbo.TASKS AS T1 LEFT OUTER JOIN                      dbo.TASKS AS T2 ON T2.PARENTWOID = T1.WOID

  • SQL Loader - MS Word data

    Hi All,
    I want to load MS word data using SQL Loader into my tables. It loads fine except for certain features like bullets and numbering gets loaded as junk characters.
    My sql loader version is Release 8.0.6.3.0.
    Please help. Hope I am clear. If not please let me know

    My DB is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    My OS is AIX 3
    My sql loader version is Release 8.0.6.3.0.
    Table
    CREATE TABLE DUMPTABLE
    Case_ID VARCHAR2(30) NOT NULL,
    A_Status VARCHAR2(30) ,
    Emp_Name VARCHAR2(100) ,
    Emp_no VARCHAR2(30) ,
    Counter_sign_mgr_comments VARCHAR2(1000) ,
    C_KPI1_Name VARCHAR2(1000)
    Sample data
    79717^ST 1 PEND EMP 1^Test1^1025^Risk Management ^Account Monitoring • Proactively monitor • Early identification • Write Call Memos
    79718^ST 1 PEND EMP 2^Test2^1026^Leading Courageously ^Account Monitoring • Need To Improve • ensure compliance • Write Call Memos
    Control file
    OPTIONS (BINDSIZE=160782, SKIP=1)
    LOAD DATA
    INFILE '/home/apsprod/DUMP.txt'
    BADFILE '/home/apsprod/REJECTEDRECORDS.txt'
    REPLACE
    INTO TABLE DUMPTABLE WHEN (Case_ID != '99')
    fields terminated by "^" optionally enclosed by '"' trailing nullcols
    Case_ID,
    A_Status,
    Emp_Name,
    Emp_no,
    Counter_sign_mgr_comments char(1000),
    KPI1_Name char(1000)
    With the above, the data gets loaded but when I select from the table, all the characters are loaded fine but all the bullets in the data is as some junk character
    I also tried giving CHARACTERSET as WE8ISO8859P1 and also as UTF8 in the control file
    Please help. Hope I am clear. If not please let me know

  • Pull SQL table of 4 rows on to a pdf

    Hi,
    I have a MS SQL table with 4 rows. The table contains 4 fields..
    Event Location Description Date
    I want to pull this table on to a pdf document.. (all 4 rows)
    i.e.
    Event
    Location
    Description
    Date
    jygyjh
    mnum
    reny ynjny nytnty
    1/2/13
    crev
    muym
    nyrthnyernyn nyrtejnet
    1/6/14
    byn
    muy
    bnrn
    hen
    2/3/14
    What is the easiest way of doing this basic task?
    I am using Livecycle Designer ES
    Thanks for your time,
    Ollie

    Hi
    You could do it using JQuery, following these steps:
    1 - Add a new column to your query, like this:
    case when my_date < :p1_cutoff_date then 'readonly' end class
    2 - Modify a display-only column in your report so it includes the new class column above (in the column formatting section):
    [span class="#CLASS#"]#DISPLAYONLYCOLUMN#[span]
    3 - Using JQuery, add this to your page body:
    onload="$('.readonly').parent().parent().find('input').attr('disabled','disabled');"
    JQuery is really cool, if you understand how it works... what the line of code above will do is:
    - Select all items with class=readonly
    - For each item returned above, will get the parent (table data) and the parent's parent (table row)
    - For each table row returned, it will search for all input fields in it and set them to disabled
    I hope this helps
    Luis

  • Some SQL fields not showing data in Crystal XI R2

    I have a report that is using a stored procedure.  In this stored procedure we have many fields that are being passed over to Crystal.  A small portion of these fields do not show any data when you browse them in Crystal.  But when you check on the SQL Server 2005 side, they contain data.  So we know that the issue is probably on the Crystal side because there is data on the SQL side.
    I originally thought that the problem may be caused by Null values in the database, but I used Crystal to convert the Null's to numeric zero if it was a number, and still there was no data showing up.
    Also in the stored procedure, we are passing 2 parameters a start and end date.   But that seems irrelevent to why some of the fields are not containing data like they should.
    Why would some fields show no values at all, and some fields shows values? 
    Any ideas on how to correct this situation so data will show up for all the fields like they are suppose too?
    Thanks everyone for their help!

    Hi Levi,
    Pleaase check the following :
    1. Other than storedprocedure are you adding any tables to your report ? If so, check the links between your stored procedure.(Through Database Expert)
    2.Write the following formula to find out whether the database fields contains values or not.
    if isnull() or = " " Then
    "This Field is Empty"
    Else
    Drag and dwop this formula in your report to get the field values.
    Thanks,
    Sastry

  • Control checkbox form field in word with report generation toolkit for Microsoft office

    Hi all,
    Happy New Year!
    I insert in the word template the check box form field. It has a bookmark name "Check1".
    Now I'm trying to checked or unchecked this field using the report generation toolkit for Microsoft office and I couldn't. If anyone now how to do it? I'm using LabView 8.0
    Thanks in advance,
    Boris
    Solved!
    Go to Solution.

    Boris,
    The Microsoft Office Toolkit does not have support for checking/unchecking check box forum field. You would have to research the activex functionality that enables this to be checked or unchecked and then do the activex calls yourself. I did hear of one csutomer who used a special font to write a blank box or a checkbox into a word document and changed it that way as well.
    Maybe http://www.ozgrid.com/forum/showthread.php?t=53715 gives a hint to an activex reference
    Rob K
    Measurements Mechanical Engineer (C-Series, USB X-Series)
    National Instruments
    CompactRIO Developers Guide
    CompactRIO Out of the Box Video

Maybe you are looking for

  • How do I hide a document's file path in the book panel?

    For reasons I don't understand, FM sometimes displays the complete filepath to a document or book, and sometimes it doesn't. How can I keep FM from displaying it? Cheers, JP

  • Adobe Flex 4 with ABAP web dynpro

    I currently am working with Flex 3 but wanted few features of Flex 4 for my project. Is there any way that I can use Flex 4 with ABAP web dynpro. I have tried using the 'Use Flex 3 compatibility mode' with 'merged into code' but this does not work. T

  • Where is my Book tab in itunes?

    When i connect my ipad to my pc, the tabs for , music, movies, tv shows etc. shows up but the book tab is missing - both on the left side of the screen and on top of the screen. How can i get it back?

  • OWB mapping Import error

    Hi All, I'm facing the following error while importing a new version of an existing map via a .mdl file. this is the error message: Error at line 67: MDL1247: Error occurred importing mapping <COT_H_ORDERCATEGORYTYPE_IU0/COT_H_ORDERCATEGORYTYPE_IU0>

  • Blackberry Desktop Software and Palm Desktop v6.2

    I am a happy new Blackberry so far, but have come across something that is very annoying.  I am attempting to move the data off my Palm TX, but the Blackberry Desktop does not recognize the version of the Palm Desktop software that I am using. What i