This commit is contained in:
parent
afebd40e72
commit
969485ed40
@ -37,7 +37,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (roids.Contains(roidkey))
|
||||
roids.Remove(roidkey);// If in both, nothing to do
|
||||
else
|
||||
myUsage.Delete(); // If only in old, remove it
|
||||
myUsage.MyDROUsage.Delete(); // If only in old, remove it
|
||||
}
|
||||
}
|
||||
foreach (string roidkey in roids)
|
||||
@ -584,6 +584,7 @@ namespace VEPROMS.CSLA.Library
|
||||
RectangleF plotRect = CreatePlot(pngFile, val, 600F, FormForPlotGraphics);
|
||||
//LBShape shape = myDoc.Shapes.AddPicture(@"C:\Temp\XYPlot.png", 0, 0, sel.Range);
|
||||
float x = (float)sel.get_Information(LBWdInformation.wdHorizontalPositionRelativeToPage);
|
||||
|
||||
float y = (float)sel.get_Information(LBWdInformation.wdVerticalPositionRelativeToPage);
|
||||
//LBInlineShape shape = sel.InlineShapes.AddPicture(pngFile);
|
||||
LBRange myRange = sel.Paragraphs.First.Range;
|
||||
@ -591,6 +592,11 @@ namespace VEPROMS.CSLA.Library
|
||||
float yTop1 = (float)myRange.get_Information(LBWdInformation.wdVerticalPositionRelativeToTextBoundary);
|
||||
float xAdjust = (float)-sect.MyDocStyle.Layout.LeftMargin;
|
||||
float yAdjust = sel.Font.Size;
|
||||
// The following two lines made the xyplot location for WCN2 match the 16bit output. However, how the
|
||||
// xTweak value is determined is phantom of Rich's mind. Word document location of the RO token
|
||||
// will be modified in data before delivery so that this xTweak is not needed.
|
||||
//float xTweak = -(30 + xAdjust) / 3; // Used to align plots for WCN2.
|
||||
//LBShape shape = myDoc.Shapes.AddPicture(pngFile, x + xAdjust + plotRect.X + xTweak, yAdjust + y - yTop + plotRect.Y, sel.Range);
|
||||
LBShape shape = myDoc.Shapes.AddPicture(pngFile, x + xAdjust + plotRect.X, yAdjust + y - yTop + plotRect.Y, sel.Range);
|
||||
File.Delete(pngFile);
|
||||
shape.LockAspectRatio = LBMsoTriState.msoTrue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user