This commit is contained in:
@@ -383,6 +383,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (_MyDocument == null) return;
|
||||
Document doc = _MyDocument.Get();
|
||||
FileStream fs = _MyFile.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
long savLen = _MyFile.Length;
|
||||
Byte[] buf = new byte[_MyFile.Length];
|
||||
fs.Read(buf, 0, buf.Length);
|
||||
fs.Close();
|
||||
@@ -440,6 +441,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
doc.UpdateDRoUsages(roids);
|
||||
doc.Save();
|
||||
if (savLen != _MyFile.Length) _MyLog.ErrorFormat("DSO FRAMER: File size changed during Save for Word Document, beginSize = {0}, endSize = {1}", savLen, _MyFile.Length);
|
||||
}
|
||||
#endregion
|
||||
#region Constructors
|
||||
@@ -673,6 +675,8 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
|
||||
pngFile = VlnSettings.TemporaryFolder + @"\XYPlot" + filecount.ToString() + @".png"; //@"C:\Temp\XYPlot1.png";
|
||||
//FileInfo fi = new FileInfo(pngFile);
|
||||
//_MyLog.WarnFormat("PNG Name = {0}, size = {1}", fi.Name, fi.Length);
|
||||
filecount++;
|
||||
RectangleF plotRect = CreatePlot(pngFile, xyplot, 600F, FormForPlotGraphics);
|
||||
|
||||
@@ -749,6 +753,9 @@ namespace VEPROMS.CSLA.Library
|
||||
//float height = 72 * lines / 6.0F;
|
||||
pngFile = VlnSettings.TemporaryFolder + @"\XYPlot1.png"; //@"C:\Temp\XYPlot1.png";
|
||||
RectangleF plotRect = CreatePlot(pngFile, val, 600F, FormForPlotGraphics);
|
||||
//FileInfo fi = new FileInfo(pngFile);
|
||||
//_MyLog.WarnFormat("PNG Name = {0}, size = {1}", fi.Name, fi.Length);
|
||||
|
||||
//LBShape shape = myDoc.Shapes.AddPicture(@"C:\Temp\XYPlot.png", 0, 0, sel.Range);
|
||||
float x = (float)sel.get_Information(LBWdInformation.wdHorizontalPositionRelativeToPage);
|
||||
|
||||
|
@@ -1254,6 +1254,7 @@ namespace VEPROMS.CSLA.Library
|
||||
int iiForFoldout = sc != null ? sc.Step_FloatingFoldout : -1;
|
||||
if (iiForFoldout <= 0) return -1;
|
||||
int fldid = sc.Step_FloatingFoldout;
|
||||
if (fldid == 0) return 0;
|
||||
int indxOfFoldout = 0;
|
||||
foreach (ItemInfo sect in MyProcedure.Sections)
|
||||
{
|
||||
|
Reference in New Issue
Block a user