This commit is contained in:
@@ -629,6 +629,9 @@ namespace VEPROMS.CSLA.Library
|
||||
_MyLog.Error("Could not Adjust Margins", ex);
|
||||
}
|
||||
LBSelection selxy = hasRos ? FindXyPlot() : null;
|
||||
string pngFile = VlnSettings.TemporaryFolder + @"\XYPlot1.png"; //@"C:\Temp\XYPlot1.png";
|
||||
if (File.Exists(pngFile)) File.Delete(pngFile);
|
||||
int filecount = 1;
|
||||
while (selxy != null)
|
||||
{
|
||||
string xyplot = selxy.Text;
|
||||
@@ -655,7 +658,8 @@ namespace VEPROMS.CSLA.Library
|
||||
selxy.Text = "";
|
||||
if (cnt>0)for (int icnt = 0; icnt < cnt; icnt++) selxy.Text = selxy.Text + "\r";
|
||||
|
||||
string pngFile = VlnSettings.TemporaryFolder + @"\XYPlot1.png"; //@"C:\Temp\XYPlot1.png";
|
||||
pngFile = VlnSettings.TemporaryFolder + @"\XYPlot" + filecount.ToString() + @".png"; //@"C:\Temp\XYPlot1.png";
|
||||
filecount++;
|
||||
RectangleF plotRect = CreatePlot(pngFile, xyplot, 600F, FormForPlotGraphics);
|
||||
|
||||
float xAdjust = (float)-sect.MyDocStyle.Layout.LeftMargin;
|
||||
@@ -729,7 +733,7 @@ namespace VEPROMS.CSLA.Library
|
||||
val = val.Substring(pstart); // set val to the start of the plot commands
|
||||
//float width = 72 * Int32.Parse(vals[3], System.Globalization.NumberStyles.AllowHexSpecifier) / 12.0F;
|
||||
//float height = 72 * lines / 6.0F;
|
||||
string pngFile = VlnSettings.TemporaryFolder + @"\XYPlot1.png"; //@"C:\Temp\XYPlot1.png";
|
||||
pngFile = VlnSettings.TemporaryFolder + @"\XYPlot1.png"; //@"C:\Temp\XYPlot1.png";
|
||||
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);
|
||||
|
Reference in New Issue
Block a user