81 Commits

Author SHA1 Message Date
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
3dfb222834 Added logic to handle cases when and RO value contains an X/Y Plot but with text before the plot language
fixed bad indexes - inserting the superscript On/Off commands
2013-04-23 15:42:02 +00:00
Rich
82263e28fb Limit Library Document lists to 20 items so that the tooltip and the dialog remain within the bounds of the screen. 2013-03-26 14:45:24 +00:00
Rich
f2c8ac8740 Update the Progress Bar as the RO values are refreshed in Word 2013-02-28 23:36:45 +00:00
Rich
4abaceac23 Corrected comment
Added Ordinal to vefn_SiblingItems
Added Stored Procedure vesp_SortProcedures to sort procedures within a DocVersion
Added Error Handler in Range.Text
Corrected logic in FindRO to return a null when an RO is not found.
2013-02-28 15:47:52 +00:00
442198860c 2013-02-26 14:37:15 +00:00
Rich
6a325705d7 Added logic to find Multi-Return values when info is retrieved for Multi-Return Value ROs.
Refresh DocumentDRoUsages before saving
Delete "Old" DRoUsages when saving
Replace hardspace in value
Replace xB3 with unicode of superscript 3.
Added ability to DisplayRO to add Multi-Return Values in an MS Word Section
2013-01-15 19:35:29 +00:00
c2a6d3b610 2013-01-09 13:31:28 +00:00
4ed39bda97 Fixed problem using a dash character in the Title field. Bug Fix : B2012-292, fix the saving of the Title field when creating a new Word section
Added a check for the existence of a temporary word file before trying to create it
Part two of fix for bug B2012-292, don’t delete word section if user deletes the Title text in the step editor
2012-11-05 18:58:13 +00:00
Rich
3a861fb555 Print X-Y Plots in the approprate color (Black or Red)
Added logic to keep from failing if an item was not in the sibling list.
2012-10-31 15:55:53 +00:00
1f74f7673b 2012-10-04 11:20:03 +00:00
Rich
7bcfafcc8b Move frmErrors when frmLoader is moved
Shutoff SpellCheck for StepRTB
Use using for temporary StepRTB
Use using for vlnFlexGrid
Added debug output to track StepRTBs and vlnFlexGrids in memory
Limit bottom margin to 0 or above
Dispose of roImage after it is done being used
Dispose of Figure after it is done being used.
Use GetJustRODB so that images are not loaded.
Added ErrorHandler if annotation is deleted after a search
Track create, dispose and finalize
Add static variable to control if SpellCheck is used
Use using for temporary StepRTB
Lazy Load SelectionStack
Clean-up on Dispose
Track create, dispose and finalize
Make MyCopyInfo Lazy Loaded
Use using for temporary StepRTB
Add Dispose method for TableCellEditor
Cleanup on Dispose
Only kill MSWord instances that are invisible
2012-07-13 18:34:57 +00:00
0cf5331132 Don't set LPI; set top margin based on data (not = 0) and determine x/y of xyplot BEFORE reset of selection (various WCN plant specific bugs). 2012-07-03 15:57:44 +00:00
Rich
25db26519e Allow approval to work if no existing approved versions
Try too set margins if bottom margin is undefined for MSWord section
Corrected comment
2012-06-15 16:41:39 +00:00
12873d9187 2012-05-24 14:57:04 +00:00
Rich
c8de9f8538 Memory Utilities
Reduce Memory Use
Added GetJustFormat method
Added CheckColumnMode method
2012-05-21 13:32:28 +00:00
bd47329345 2012-04-12 16:34:17 +00:00
Rich
8cb0c78730 Added Error Log if Word File Could not be created
Select section node after it is created
Don't allow an empty procedure to be printed
2012-04-05 20:57:44 +00:00
da009a15eb fixed problem saving margins in word attachment – can’t do if in a frame
sometines would get a weird file name for the opened word attachment
2012-04-05 19:45:28 +00:00
42e70515c6 2012-03-09 14:11:05 +00:00
Rich
0b48ec643e Added new settings to control conversion of approved data
Added event handler for viewing version pdfs and summary reports
added constructor to lookup based on file
added method to get library document by original file name
fixed ConvertToDisplayText to support RO tables in approved folder
added vlnTreeViewPdfEvent delegate
added vlnTreeViewPdfArgs class
added ViewPDF event
only display menu item if pdf or summary pdf exists
determined if pdf should have superceded watermark added
added sorting of consistency check report by procedure number
added method to add superceded watermark to old version pdf files
commented out approved folders
2012-02-09 16:14:36 +00:00
fa900be307 removed previous change, it was not needed. I had a debug setting that overrode the try-catch. 2012-02-06 20:16:49 +00:00
c528032b92 In the check of winword processes, we need to also check to see if the process has existed before trying to stop it, else we will get a Null reference error when we when access the MyProcess.PriorityClass. 2012-02-06 14:27:23 +00:00
a72f752b60 removed converting # and ~ to super/subscript commands in RO values
replace # and ~ with super/subscript commands, only done for ROs in Word attachments
2012-01-11 16:49:29 +00:00
Rich
aed6c8740c File Date/Time changed to UTC to eliminate Daylight Savings Time Issue 2011-12-02 16:28:53 +00:00
2dfb1110a0 Add Logic to check for X-Y Plot type 2011-09-28 13:25:10 +00:00
df8ed9da64 2011-09-01 11:03:19 +00:00
969485ed40 2011-08-24 11:46:39 +00:00
385a06ffae 2011-07-29 13:40:30 +00:00
3cc2284e42 2011-07-14 15:57:44 +00:00
37dc25c7cb 2011-06-16 10:32:59 +00:00
Rich
0b3693fef8 Added Edit/Initialized config to the Documents
Check to see if MSWord changes should be saved if PROMS is closing
2011-05-09 20:38:01 +00:00
Rich
55eafe8115 Select row when you right-click to open context menu
Use two separate modules to close MSWord application for DataLoader and PDF Creation.
Use the Content DTS to determine ChangeBar status.
2011-04-30 12:47:44 +00:00
Rich
601632f019 Use Timer to close MSWord App about 1 second after it is used.
Check to see if the Bars exist before removing them
Add 1 point to the width of boxed text to get proper Line-Wrapping
2011-04-27 13:13:09 +00:00
d207a0eefa 2011-04-27 11:18:37 +00:00
Rich
05c97e9aed Changed code to use ActiveSection rather than MyActiveSection 2011-04-19 16:09:33 +00:00