|Publication number||US7720885 B2|
|Application number||US 11/784,097|
|Publication date||May 18, 2010|
|Filing date||Apr 4, 2007|
|Priority date||Apr 4, 2007|
|Also published as||US20080288861|
|Publication number||11784097, 784097, US 7720885 B2, US 7720885B2, US-B2-7720885, US7720885 B2, US7720885B2|
|Inventors||Brian M. Jones, Tristan A. Davis|
|Original Assignee||Microsoft Corporation|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (39), Non-Patent Citations (6), Referenced by (1), Classifications (7), Legal Events (3)|
|External Links: USPTO, USPTO Assignment, Espacenet|
U.S. patent application Ser. No. 11/784,165, filed Apr. 4, 2007, entitled “REPOPULATING A DATABASE WITH DOCUMENT CONTENT” and Ser. No. 11/784,163, filed Apr. 4, 2007, entitled “SYNCHRONIZING EXTERNAL DOCUMENTATION WITH CODE DEVELOPMENT” assigned to the assignee of the present application, are related to the present application.
Many times data that is stored within a database system is better presented in the context of a word processing document for ease of readability by the intended audience. For example, data about an Application Programming Interface (API) may be stored within a database as items in a table (each method, property, and object in the API), but the documentation for the API is better presented as a word processing document. Similarly, product data may be stored within a database but the product descriptions are better viewed within a word processing document. Creating word processing documents comprised primarily from data within a database, however, is challenging.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Word processing documents are automatically generated using a subset of data from a database. The document's settings are defined externally from the data in the database such that a consistent look and feel may be applied to each of the documents that are generated using the data from the database. For instance, templates may be defined to produce a consistent look and feel for the documents created by using data from the database. When a document is requested to be viewed and/or edited, the appropriate data from the database is retrieved and placed within the document according to the defined document settings. The data within the database does not need to include all of the metadata required to produce the document having the desired look and feel.
Referring now to the drawings, in which like numerals represent like elements, various embodiments will be described. In particular,
Generally, program modules include routines, programs, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types. Other computer system configurations may also be used, including hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, and the like. Distributed computing environments may also be used where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
Referring now to
The mass storage device 14 is connected to the CPU 5 through a mass storage controller (not shown) connected to the bus 12. The mass storage device 14 and its associated computer-readable media provide non-volatile storage for the computer 100. Although the description of computer-readable media contained herein refers to a mass storage device, such as a hard disk or CD-ROM drive, the computer-readable media can be any available media that can be accessed by the computer 100.
By way of example, and not limitation, computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, digital versatile disks (“DVD”), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer 100.
According to various embodiments, computer 100 may operate in a networked environment using logical connections to remote computers through a network 18, such as the Internet. The computer 100 may connect to the network 18 through a network interface unit 20 connected to the bus 12. The network connection may be wireless and/or wired. The network interface unit 20 may also be utilized to connect to other types of networks and remote computer systems. The computer 100 may also include an input/output controller 22 for receiving and processing input from a number of other devices, including a keyboard, mouse, or electronic stylus (not shown in
As mentioned briefly above, a number of program modules and data files may be stored in the mass storage device 14 and RAM 9 of the computer 100, including an operating system 16 suitable for controlling the operation of a networked personal computer, such as the WINDOWS VISTA operating system from MICROSOFT CORPORATION of Redmond, Wash. The mass storage device 14 and RAM 9 may also store one or more program modules. In particular, the mass storage device 14 and the RAM 9 may store database 24. Database 24 may be configured to store many different types of data. For example, the data may relate to elements of an API, records relating to a product, and the like. Generally, database 24 contains any type of data which are used to generate a document. While database 24 is shown on computer 100, database 24 may be stored within in any data store, such as on a data store on network 18.
The document generator 26 is operative to automatically generate document 25 using data from database 24. For example, a user may select one or more sections of a document(s) to be created from database 24 utilizing user interface 23. Database 24 is configured to store multiple disparate regions of rich content that can contain rich word processing content (pictures, etc.) without requiring each piece of content within the database to define all of the necessary document metadata required to generate a document. The look and feel of the document is defined externally from the data in the database such that a consistent look and feel may be applied to the retrieved data. For instance, one or more document templates 23 may be defined to produce a consistent look and feel for the documents generated. According to one embodiment, there is a template type that defines the look and feel of the document and there is a template type for translating a database record into the document.
When a document is requested to be viewed and/or edited, the appropriate data from the database is automatically retrieved and placed within the document according to the defined look and feel.
As discussed, document template 23 defines the look and feel of document 25 and is used to define other document settings for the document content. The template may be used to include settings such as fonts, page layout, header/footer information, special formatting, styles and the like. In this way, the document settings do not need to be included within the data of the database 24. Templates allow consistency between documents that are generated by document generator 26. Any method of storing document settings, however, may be used to define the structure of document 25. For example, a list may be maintained within mass storage device 14 that contains the document settings.
Although documentation generator 26 is shown as a separate application, it may be included directly within an application program 27 or at some other location. The operation of documentation generator 26 will be described in more detail below.
Client application 27 may be used to manage the document settings including the structure and formatting of the document (i.e. look and feel) on a global level without affecting any of the pieces of the data stored within database 24. For example, client application 27 may use and create one or more document templates 23 to define the structure of the document 25. The templates may define the styles, numbering, and the like that are used when generating the document. The template(s) 23 also may be used to define the location in which the constituent parts of the assembled document appear within the overall document. Document generator 26 is also configured to generate portions of a document such that multiple authors may work on the document at the same time without conflicting.
According to one embodiment, document 25 includes static content 34 and dynamic content 35. Static content 34 is content that does not change and cannot be edited. Static content may be retrieved from database 34 and/or may be content which is predefined within template 23 or at some other location. Dynamic content 35 is content that may change (is edited by the recipient of the document) and is content that is retrieved from database 24. The location for dynamic content 35 may be defined within a template as a content placeholder for a specific piece of information that is obtained from a specific row in the database. The document generator 26 is used to populate the dynamic content 35 by copying the data into the document using template 23.
A user interface 28 allows a user, such as a documenter, to select any section(s) or subsection(s) of the database 24 that they would like generated based on a document hierarchy structure that has been defined within template(s) 23. The user interface may also be used to specify the editing permissions for the document. For example, a user may only desire to read the document, in which case the document may be opened as a read-only document. In this case, a user that requests editing permissions for the same document would be allowed to edit the document.
In response to the selection request for the section(s) of the document, document generator 26 receives the selections from the user interface 28 and generates the desired section(s) of the document for the user. In order to generate the document, the user interface selections received from the user are translated into a database query against the database 24 (e.g. a SQL SELECT statement) for the appropriate sections and subsections of the documents. According to one embodiment, a copy of the document template 23 is created to have the set of styles and formatting used for the document. Then, for each item in the query, the template for the section is used to copy over the static content and dynamic content. According to one embodiment, the static content is first obtained which provides the document generator 26 with the information used to obtain the dynamic content. The document template for the section includes the definition for the output of each item in the section, which are copied and populated with both the static content and the dynamic content from the appropriate row within the database. Part of the dynamic content that is obtained is a fragment for the rich content item(s) in the section. As discussed above, each of the content items does not include all the information needed to express them. According to one embodiment, when these rich content items are inserted into the template they are valid against the schemas for the open document format of the word processing document since they are fragments of that greater whole. The resulting document is then assembled by document generator 26 with one consistent look and feel and the desired subset of content and returned to the caller.
According to one embodiment, when any section or subsection is retrieved in generating a document, those records within database 24 are marked such that a concurrent request for that section may be handled appropriately. For example, if a section is opened for editing, a subsequent section may be opened as “read only” such that two users are not editing the same section. An example of document generation system 200 will now be described. The following is merely an example and is not intended to be limiting.
The following example relates to generating a document that documents an XML based syntax that is stored within a database. When developing source code, such as an XML-based syntax, it is common to provide documentation for the source code. Generally, documentation for the source code is created to be user-friendly that completely and accurately describes the source code. As such, a rich formatting of the documentation is typically desired. Document generator 26 is configured to create a document 25 such that a documenter may edit the content retrieved from database 24 within a word-processing document in a user friendly manner. In the current example, the database 24 contains at least one field, such as documentation field 33, that may be edited by a user. More or less fields may be contained within database 24. For example, a user data field 39 may be included that may be edited.
According to one embodiment, each row of the database 24 is uniquely identified such that the row can be identified even when an identifying characteristic, such as the name, of an element changes. For example, in XML elements, even when the typical identifying characteristics of those elements change (e.g., their names, content models, etc.) the element can remain associated with the documentation. In order to identify each row of the database, each row is annotated with a unique ID. For example, each row may be identified by a separate unique GUID (globally unique identifier) 31.
As discussed above, the database 24 contains data that is used to populate document 25. Some of the data may be used for populating static content of the document while other data may be used for populating dynamic content of the document. For example, name field 32 may be considered static content and the documentation field 33 may be considered dynamic content. Many more fields may be contained in each row. For instance, a field may contain metadata, user data 39, and the like. Another field that may be included within database 24 is a relationship field (not shown) that may specify the relationship of one row to another. In the example presented, a relationship field may be used to store the parent/child relationships of the XML schema files such that a simple query may be used against the database to return content relating to a parent and its children when constructing document 25. In some embodiments, it may be advantageous to configure database 24 such that it provides an easy way to view the functionality of the code without directly accessing the code.
When a documenter desires to view and/or edit documentation for the XML, the documenter requests a portion of the document to be generated. According to one embodiment, user interface 28 is used to receive the selection request. In response to the request, the document generator 26 extracts the requested content from database 24 and places the content into document 25 according to the settings specified in document template 23. Documentation 25 may take many different forms such as a single file, multiple files and the like. For example, content from database 24 could be extracted and then placed into templates into documentation 25. Documentation could be in the form of MICROSOFT WORD files or some other document format.
According to one embodiment, when a document 25 is created, document generator 26 maintains the unique identifier 31 that is associated with each row in the database within document 25 such that the location of the content within the document can be traced back to the database. For example, document 25 may include a tag that specifies the identifier (i.e. the GUID) that identifies which row of the database the content is associated with. The tag may take many different forms. For example, when the document is stored as XML, the tag may be an XML tag that is placed near the retrieved content. Any method of tagging the content, however, may be used. The GUIDs 31 associated with each row provide a permanent link from the row in the database to the generated document 25.
Referring now to
When reading the discussion of the routines presented herein, it should be appreciated that the logical operations of various embodiments are implemented (1) as a sequence of computer implemented acts or program modules running on a computing system and/or (2) as interconnected machine logic circuits or circuit modules within the computing system. The implementation is a matter of choice dependent on the performance requirements of the computing system implementing the invention. Accordingly, the logical operations illustrated and making up the embodiments described herein are referred to variously as operations, structural devices, acts or modules. These operations, structural devices, acts and modules may be implemented in software, in firmware, in special purpose digital logic, and any combination thereof.
After a start operation, the process flows to operation 310, where the settings of the document are obtained. According to one embodiment, a client application such as a word processing application is used to create a template(s) to define the look and feel of the document as well as the structure of the document such that when content from the database is retrieved and presented, a consistent look and feel is provided to the user. The template may specify items such as: header/footer information; styles; formatting; location of dynamic content and static content, and the like.
Moving to operation 320, the template providing mapping of the database content to the document is obtained. The mapping of the database content may be determined in many different ways. For example, the template may be used to define what data from the database is placed into what locations of the document. A field within each row of the database may also be used to specify the location of the data. Similarly, a mapping file may be used to map the data from the database to a document location.
Transitioning to operation 330, the selections for the section(s) to be generated for a document are obtained. According to one embodiment, a user selects the sections of the document to view/edit within a user interface. Other methods may also be used. For example, a predefined list may be used. The section(s) may be as few as one subsection of the document or be as large as the entire document.
Moving to operation 340, the document is generated based on the selections (See
The process then flows to operation 350 where the document is provided to the user. For example, the document may be provided through a word-processing application and/or the file itself may be provided.
The process then flows to an end operation and returns to processing other actions.
After a start operation, the process flows to operation 410, where the selections for the document are translated into queries against the database to retrieve the appropriate content. For example, if the section of the document to be generated relates to product A, then the database query(s) are created to retrieve content from the database relating to product A.
Moving to operation 420, the corresponding template(s) for the requested section(s) is obtained. The template that is obtained is based on the content of the requested section. The template is used when copying data from the database to the document such that the document maintains a consistent look and feel and the content is placed into the correct location of the document.
Transitioning to operation 430, the content for the document is obtained from the database. The content retrieved from the database may be editable content (dynamic content) and/or non-editable content (static content). According to one embodiment, one set of queries obtains the static content and another set of queries obtains the dynamic content. Any method of extracting the data from the database, however, may be utilized. For example, a single query may be constructed to retrieve the content from the database.
Flowing to operation 440, the document is assembled. As discussed above, the templates are used when copying the data into the document.
Moving to operation 450, the content from the database is marked such that concurrent generations of the same section of the document may be appropriately handled. For example, the marking of the content may be used to indicate that the content is being edited or just viewed.
The process then flows to an end operation and returns to processing other actions.
The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention resides in the claims hereinafter appended.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US5267155||Mar 6, 1992||Nov 30, 1993||Medical Documenting Systems, Inc.||Apparatus and method for computer-assisted document generation|
|US5457792||Nov 7, 1991||Oct 10, 1995||Hughes Aircraft Company||System for using task tables and technical data from a relational database to produce a parsed file of format instruction and a standardized document|
|US5845303 *||Oct 2, 1996||Dec 1, 1998||Netpodium, Inc.||Document processing using frame-based templates with hierarchical tagging|
|US5862325||Sep 27, 1996||Jan 19, 1999||Intermind Corporation||Computer-based communication system and method using metadata defining a control structure|
|US6154753||Sep 12, 1996||Nov 28, 2000||Cable & Wireless, Inc.||Document management system and method for business quality modeling|
|US6209004||Aug 28, 1996||Mar 27, 2001||Taylor Microtechnology Inc.||Method and system for generating and distributing document sets using a relational database|
|US6473794 *||May 27, 1999||Oct 29, 2002||Accenture Llp||System for establishing plan to test components of web based framework by displaying pictorial representation and conveying indicia coded components of existing network framework|
|US6632251||Dec 30, 1998||Oct 14, 2003||Polydoc N.V.||Document producing support system|
|US6714939||Jan 8, 2001||Mar 30, 2004||Softface, Inc.||Creation of structured data from plain text|
|US6961776||Dec 22, 2000||Nov 1, 2005||Nortel Networks Limited||Architecture for multiple channel access to applications|
|US6996571||Jun 28, 2002||Feb 7, 2006||Microsoft Corporation||XML storage solution and data interchange file format structure|
|US7107264||Mar 31, 2004||Sep 12, 2006||Yahoo, Inc.||Content bridge for associating host content and guest content wherein guest content is determined by search|
|US20020077846||Dec 17, 2001||Jun 20, 2002||International Business Machines Corporation||Method and system for document or content off-loading to a document repository|
|US20020087600||Jan 15, 2002||Jul 4, 2002||Newbold David Leroy||Method and system for profiling users based on their relationships with content topics|
|US20020184401 *||Oct 22, 2001||Dec 5, 2002||Kadel Richard William||Extensible information system|
|US20030018644||Jun 21, 2001||Jan 23, 2003||International Business Machines Corporation||Web-based strategic client planning system for end-user creation of queries, reports and database updates|
|US20030140097||Jun 19, 2002||Jul 24, 2003||Hardy Schloer||Method and device for presenting data to a user|
|US20030145018||Sep 27, 2002||Jul 31, 2003||Hitchcock Michael D.||Universal forms engine|
|US20040098284||Sep 17, 2003||May 20, 2004||Petito Daniel A.||Automated work-flow management system with dynamic interface|
|US20040153465||Dec 1, 2003||Aug 5, 2004||Walt Singleton||Document generation system and user interface for producing a user desired document|
|US20050154983||Mar 31, 2004||Jul 14, 2005||Bankers Systems Inc.||Document creation system and method using knowledge base, precedence, and integrated rules|
|US20050235202 *||Apr 20, 2004||Oct 20, 2005||Tsu-Wang Chen||Automatic graphical layout printing system utilizing parsing and merging of data|
|US20050278623||May 13, 2005||Dec 15, 2005||Dehlinger Peter J||Code, system, and method for generating documents|
|US20050289446||Jun 23, 2004||Dec 29, 2005||Moncsko Cynthia A||System and method for management of document cross-reference links|
|US20060020519||Jan 26, 2005||Jan 26, 2006||Dun & Bradstreet, Inc.||System and method for automatically updating business information reports|
|US20060069989||Feb 25, 2005||Mar 30, 2006||Microsoft Corporation||Method and apparatus for utilizing an object model for managing content regions in an electronic document|
|US20060173865||Feb 3, 2005||Aug 3, 2006||Fong Joseph S||System and method of translating a relational database into an XML document and vice versa|
|US20060190815||Apr 5, 2006||Aug 24, 2006||Microsoft Corporation||Structuring data for word processing documents|
|US20060193008||Feb 21, 2006||Aug 31, 2006||Hitoshi Osaka||Document processing apparatus, document processing method and computer program|
|US20060195454||Feb 25, 2005||Aug 31, 2006||Microsoft Corporation||XML schema for binding data|
|US20060253478||Mar 16, 2006||Nov 9, 2006||Graham Michael L||Client centric document preparation interface|
|US20060259854||May 10, 2005||Nov 16, 2006||Microsoft Corporation||Structuring an electronic document for efficient identification and use of document parts|
|US20060271519||May 25, 2005||Nov 30, 2006||Ecteon, Inc.||Analyzing externally generated documents in document management system|
|US20060288278||May 25, 2006||Dec 21, 2006||Koji Kobayashi||Document processing apparatus and method|
|US20070033213||Aug 5, 2005||Feb 8, 2007||Sap Aktiengesellschaft||Methods and systems for merging software-level objects with document-level objects in a document publishing environment|
|US20070282616 *||May 30, 2006||Dec 6, 2007||Frank Brunswig||Systems and methods for providing template based output management|
|US20080154873||Dec 21, 2006||Jun 26, 2008||Redlich Ron M||Information Life Cycle Search Engine and Method|
|US20080250052||Apr 4, 2007||Oct 9, 2008||Microsoft Corporation||Repopulating a database with document content|
|US20080250394||Apr 4, 2007||Oct 9, 2008||Microsoft Corporation||Synchronizing external documentation with code development|
|1||Adboe; "Adobe Solutions for Document Generation"; http://adobe.com/products/server/pdfs/document-generation-wp.pdf; 2003; 17 Pgs.|
|2||Adboe; "Adobe Solutions for Document Generation"; http://adobe.com/products/server/pdfs/document—generation—wp.pdf; 2003; 17 Pgs.|
|3||Evermore Software; "EIOffice 2007"; http://www.evermoresw.com/weben/product/integrated.jsp; 2006; 2 Pgs.|
|4||*||FitzGerald, Neil et al., "Crystal Reports XI: Official Guide", Sams, Nov. 1, 2006; proquest.safaribooksonline.com/0672329174.|
|5||Madhva, Sanjay Kumar; "Generating a WordprocessingML Table from a Data Source"; Open XML Developer.org; http://openxmldeveloper.org/articles/generatewordtable.aspx; May 24, 2006; 27 Pgs.|
|6||Mitchell, Scott; "Generate Office Documents, Monitor Event Logs, and More"; MSDN; http://msdn.microsoft.com/msdnmag/issues/06/06/Toolbox/default.aspx; Jun. 2006; 8 Pgs.|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US20080250394 *||Apr 4, 2007||Oct 9, 2008||Microsoft Corporation||Synchronizing external documentation with code development|
|U.S. Classification||707/804, 715/253|
|Cooperative Classification||G06F17/248, G06F17/212|
|European Classification||G06F17/24V, G06F17/21F2|
|May 30, 2008||AS||Assignment|
Owner name: MICROSOFT CORPORATION, WASHINGTON
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:JONES, BRIAN M.;DAVIS, TRISTAN A.;REEL/FRAME:021023/0653
Effective date: 20070403
Owner name: MICROSOFT CORPORATION,WASHINGTON
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:JONES, BRIAN M.;DAVIS, TRISTAN A.;REEL/FRAME:021023/0653
Effective date: 20070403
|Oct 11, 2013||FPAY||Fee payment|
Year of fee payment: 4
|Dec 9, 2014||AS||Assignment|
Owner name: MICROSOFT TECHNOLOGY LICENSING, LLC, WASHINGTON
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MICROSOFT CORPORATION;REEL/FRAME:034542/0001
Effective date: 20141014