116 Commits

Author SHA1 Message Date
Rich
c02b088509 B2017-262 - Use the Word document date-time-stamp for the Document SQL record 2017-11-21 18:17:27 +00:00
Rich
7469b70b06 B2017-260 - Add a prefix to the temporary MSWord section file names including the SQL server name and the database name. 2017-11-20 19:53:54 +00:00
Rich
c1cacb93a4 B2017-255 Get the correct file length before saving the contents to the database 2017-11-08 18:51:54 +00:00
Rich
543a64a4f2 B2017-249 Handle AutoSave feature of MSWord. Handle temporary documents which were not saved when PROMS crashed or was terminated without saving. 2017-11-06 15:25:09 +00:00
Rich
48df3eeee8 Added logic to support ConvertUnderscoreToUnderline flag 2017-09-21 17:37:18 +00:00
79c7332829 B2017-177 – don’t print text ROs in red on Word attachment pages 2017-08-23 14:36:46 +00:00
Rich
26b2576eda B2017-144 If MSWord sections have text in multiple colors or the override color is not red change the text to the override color. 2017-07-17 10:32:13 +00:00
b6713392c6 B2017-140, B2017-142 Right margin was not set properly during the printing of word sections 2017-07-12 14:54:21 +00:00
Rich
537ab3c21c B2017-138 Add error handling for setting Bottom Margin
Removed debug output
2017-07-10 15:40:39 +00:00
Rich
4d5dc34210 When a deleted RO is found in an MSWord section <SP-C.123> for example, the RO had been replaced with the text RO Not Found. If there were mutiple ROs the specific one with the issue could not be found. Now the token will be replaced with RO (SP-C.123) Not Found. This will make it easier to fix problems when they occur. 2017-03-29 18:05:12 +00:00
Rich
bdabdd1c1f Fix XY Plot offset on page if the first line of the page is centered 2017-02-02 18:25:13 +00:00
Rich
e6c65b5139 Fixed logic to properly position XY Plots and Images 2017-01-25 18:41:56 +00:00
Rich
47ddfe2857 Adjustments for Margins, Page Lengths, Page Width and a few Page List Items
Fixed logic for Landscape Margins
2016-10-24 16:27:32 +00:00
537ec8c2fe B2016-204 – needed to pass in the document file extension when we create a new word document in converting a library document to a regular word section. 2016-09-14 17:30:16 +00:00
e7a0a96dae Convert ^ to a delta when used in X/Y Plots 2016-06-03 16:07:02 +00:00
008a1e67eb If the open library document is not referenced, then save changes but don’t generate a PDF. 2016-05-26 15:24:36 +00:00
8cd75c0c14 logic to save word sections with resolved RO values for exporting the approved procedure
logic to create an export file with unlinked RO and Transition
Commented out debug statements to help evaluate memory usage
2016-02-18 15:29:25 +00:00
Rich
98afa51783 Added File extension parameter to Make Document
Handle Error Handling for External Transitions
Insert Enhanced Document Step
2015-10-27 13:29:40 +00:00
Rich
5d2b0bc1b0 Added ( and Page Size) to the section property dialog for the checkbox to use MS Word Margins.
Changed logic for embedding ROs (Tables, Plots and Images) within a MSWord section.  If the Word Section is set to use MSWord Margins (and Page Size) the locations of the embeded ROs will be determined from the physical location on the page rather than the offset from the margins.
2015-03-26 02:20:20 +00:00
e24574e1b0 Fixed issue with RO table in a Word section. If the RO token was spaced over, only the first row of the table would be spaced over. 2015-03-18 12:21:57 +00:00
Rich
f97433e12a Changed the name of the temporary file used for MSWord PDFs. Gave it a PDF extensison so that it caan be more easily opened.
Add useful information to the PDF file properties so that the verssion of the code used to create the PDF can be identified.
2015-03-06 11:50:27 +00:00
Rich
e8ab373008 Word Section Replace ROs Results in an error if there are not any ROs 2015-02-27 15:13:59 +00:00
Rich
6d94bfb5f4 Added code to resolve issue with printing RNP document
Added code to resolve issue with printing BGE document
2015-02-27 03:56:28 +00:00
Rich
52c6e61b6a Use code that finds the ROImage file based upon filename. 2015-02-24 15:43:40 +00:00
Rich
a54c2eaa09 Changed logic to find ROs or XY Plots. VEPROMS_BGE/OI-34 has the text
<<<--Isolators-->>> which was being identified as an XY Plot and then as an RO.
Add location information to the error log for RO Image problems
Reduce duplicated error log messages for RO Value update
2015-02-20 17:39:13 +00:00
246e09e0da Made CreatePlot public so I could access it in the generation of the Complete RO Report
Logic for Complete RO Report
2015-01-27 20:58:36 +00:00
Rich
aad9f0e850 Some ROs use special character 0xF8 rather than 0xB0 for the degree character. This change allows these ROs to print properly when used in MSWord sections. 2014-06-18 12:41:22 +00:00
238724db6c Added logic to handle RO table (in word section) that uses underbars to draw the horizontal lines. 2014-02-25 15:22:18 +00:00
Rich
f864d03eec Changed how ROFSTLookup object was obtained based on correct DocVersion
Changed how RoFst date time is compared to actual ro.fst file date time
2014-02-07 17:37:51 +00:00
c2f11de722 Logo for WCN cover pages was printing at top of page. Fixed the location of image printing in Word Documents
Added IsCaution1 boolean check (for WCN BCK formatting); underline background document header
Added RO Format flag: UpRoImmAftrDashSpace
2014-02-05 13:45:00 +00:00
Rich
2f3b770fec Revert to previous version 2014-01-24 17:53:25 +00:00
Rich
126b8f1878 For production PDF creation convert Figures to GIF before creating a PDF. TIF background was set to transparent, and was creating a Black Box when PDF/A format was created with MSWord.
Added MyGIFFile property to RoImageFile, so that the file could be deleted if it is created during the PDF creation process for MSWord sections.
2014-01-24 14:35:01 +00:00
03311ab658 Added an ‘InsertSymbol’ method for Word interface
Support for toggle of underlining for RO’s when used in Word documents
Fixed access of column mode for subsections
Improve table layout on screen (was overlaying table on text or another table)
Fixed problem where RNO text was printing past right margin. Print was using incorrect columnmode for subsection
2013-12-09 14:09:35 +00:00
Rich
d056362081 Added logic to support reading a 64 bit registry from 32 bit code.
Fixed logic to check to see if MSWord 2007 has the addin installed for PDF Export
Added Unit RO support for MSWord Sections for U-Name, U-ID, U-Other Text, U-Other Number, U-Other Name, and U-OtherID
Fixed code to handle Library Documents being remove from a list.
Removed Debug Output
2013-11-14 16:20:08 +00:00
Rich
d9a10aca59 Handle Unit RO <UNIT-Number> in MS Word Documents
Comment-out a change that was made to raise the location of the "END" message.
Fixed logic to account for borders on figures.
2013-11-12 19:53:15 +00:00
Rich
f9ba96fdd8 Use Selected Slave to create a specific version of the PDFs for MSWord sections.
Replace <U-Text> with DocVersionConfig.Unit_Text
Added logic to handle setting UseISO19005_1 when creating a PDF from an MSWord Section.
Set the plot background to white if not doing compare and transparent if doing a compare.
Use Selected Slave (Unit) to create a specific version of the PDFs for MSWord sections.
2013-11-07 21:43:47 +00:00
ff6e3626c4 Fixed problem with a negative value in a scientific notation RO value
Added logic to support an Indented Paragraph (Comanche Peak)
2013-10-10 20:02:22 +00:00
Rich
e4698b5bc3 Removed code to test the Error Handler. 2013-09-18 18:04:07 +00:00
Rich
3e1d22674c Added logic so that MSWord 2010 and beyond uses the internal export to PDF function.
Added logic to handle errors when a document is closed.  The code will attempt to do a close 10 times.  If it fails ten times, it will document the exception and continue.
If an exception occurs when an MSWord section is being saved, a message will be displayed that will document the error.
2013-09-18 16:42:30 +00:00
a28735c868 Don’t restrict find text in Finding RO’s in word documents to not allow a space 2013-09-05 15:46:31 +00:00
Rich
78add0ccd2 Added a missing MAXRECURSION 10000
Changed Through Transition Format and User Interface
Added Automatic Print Options to shutoff DebugText (/NT), DebugPagination (/NP) and Compare (/NC)
Added logic to allow the use of the default path for PDFs.
Update the Print_PDFLocation property of the Working Draft when the user changes the value on the Working Draft property page.  Fixed Bug B2013-117
Set the date/time stamp for the Document based upon the current time.
Make sure that the output is set to Final without revisions and comments before ROs are replaced.
Added function to restore valid previous version of MSWord document if the current version is not a valid document.
Check for Null to eliminate errors.
Removed Unused field DocPDF
Support MSWord document restore function.
Add check for Transition Node count before updating values.
Restore latest valid MSWord document if the current version is not valid.
Eliminate File Commands so that the user can only close the MSWord section, and then verify if the changes to the document will be saved.
2013-07-01 17:39:15 +00:00
f77ebed326 Fix for B2013-120 (pages printing landscape when they shouldn't) 2013-06-27 12:50:43 +00:00
Rich
de21ab4c8f Set DlgPrintProcedure.SelectedSlave property to -1 to support RunAutomatic method when processing single unit data
Added code to set orientation to landscape when width > length of document
Utilized new FormatStepData.TabData property RNOExcludeMacros in SetTabText method to support VCSummer format
Added new method ReplaceStepToken and utilized method for processing VCSummer data
Changed RomanPart and RomanNumbering properties to static
Added new property SectionConfigCheckOffIndex for processing VCSummer data
Added new property stpCheckOff for processing VCSummer data
Modified code in SectionDefaultEnabledCheckOff method for processing VCSummer data
Added new property SectionDefaultEnabled for processing VCSummer data
Added new property IsLowestLevelStep for processing VCSummer data
Made Text property of MetaTag class public for processing VCSummer data
2013-06-11 18:43:03 +00:00
05f3fcf8a4 2013-06-07 11:11:54 +00:00
85d0e02a4f Handle embedded text in xyplot for CPLS 2013-05-14 12:44:03 +00:00
Rich
944868a0b4 Changed an Error Message to provide the location where the error occured.
Changed StepLevel property for Cautions and Notes to reduce the probability that notes or cautions will be split over a page break.
Added IsNumbered Property to aid in pagination.
2013-05-13 10:41:52 +00:00
06990b5c13 added access to MSWord’s ShowRevisionsAndComments as well as
RevisionView
When we generate the PDFs for Word Attachments, we now for Word to print with ShowRevisionsAndComments set to False, and RevisionView set to ViewFinal (instead ViewFinalWithMarkups)
2013-05-10 19:20:43 +00:00
8984f3bcd4 2013-05-09 12:23:53 +00:00
1c689b3087 X/Y Plot RO type fix – spit out the raw X/Y Plot RO value if there is a problem and continue the processing loop instead of returning without processing the rest 2013-04-24 18:08:23 +00:00
262a8c3ad3 Added underline to the LBFontClass
Added logic to support using underbars to turn underlining on/off – only implemented in X/Y Plot RO’s for now
2013-04-23 19:00:33 +00:00