Match Word Doc Paper Size
  • 18 Jul 2023
  • 1 Minute to read
  • Dark
    Light

Match Word Doc Paper Size

  • Dark
    Light

Article Summary

Step Details
Introduced in Version8.13.0
Last Modified in Version8.13.0
LocationData > MS Word

The Match Word Doc Paper Size step streamlines the process of applying a specific paper size from one document to another. Efficiently maintain consistency and uniformity in paper sizes across various documents, saving time and effort in the document formatting process. 



Properties

Inputs

PropertyDescriptionData Type
Comparison DocumentThe document that will serve as the source or reference for the desired paper size. This document has a specific paper size to apply to another Word document.
FileData
Document to ChangeThe target document to apply the paper size from the Comparison Document. This is the document that will undergo automatic adjustments to match the paper size of the source document.
FileData

Outputs

PropertyDescriptionData Type
MatchWordDocPaperSize1_OutputThe modified Document to Change with the new paper size applied.
FileData


Common Errors

File cannot be null

If the Comparison Document or the Document to Change inputs are not specified, the step will result in the following error; please ensure the step is mapped correctly. 

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Match Word Doc Paper Size 1[MatchWordDocPaperSize] in flow [Display Steps]: Exception invoking method MatchWordDocPaperSize on class DocumentSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method MatchWordDocPaperSize on class DocumentSteps
 ---> System.Exception: File cannot be null. at DecisionsFramework.Utilities.Data.WordUtility.MatchPaperSize(FileData file, FileData comparisonFile
 at DecisionsFramework.Design.Flow.CoreSteps.Word.DocumentSteps.MatchWordDocPaperSize(FileData documentToChange, FileData comparisonDocument
 at InvokeStub_DocumentSteps.MatchWordDocPaperSize(Object, Object, IntPtr*
 at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---

Was this article helpful?