This commit is contained in:
Kathy Ruffing 2009-01-27 15:50:01 +00:00
parent 9edcad0c66
commit 68998360df
2 changed files with 6 additions and 4 deletions

View File

@ -272,7 +272,7 @@ namespace Volian.Controls.Library
// right before the docversion. Also note that docversions are not displayed
// (at least for now - as of 2/14/08), this may change and if so uncomment (& fix/test)
// the next section of code where docversions are processed.
FolderInfo fi = FolderInfo.Get(1);
FolderInfo fi = FolderInfo.GetTop();
DropDownNode topnode = null;
int cntnd = 0;
while (fi.ChildFolderCount > 0)

View File

@ -5,18 +5,20 @@ using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace Volian.Controls.Library
{
public partial class PreviewROImage : DevComponents.DotNetBar.Office2007Form //Form
{
public PreviewROImage(string filename, string title)
public PreviewROImage(byte [] image, string title)
{
InitializeComponent();
Image.GetThumbnailImageAbort myCallback =
new Image.GetThumbnailImageAbort(ThumbnailCallback);
Bitmap bm = new Bitmap(filename); //Bitmap(filename);
MemoryStream ms = new MemoryStream(image);
Bitmap bm = new Bitmap(ms); //Bitmap(filename);
SizeF sizef = new SizeF(bm.Width / bm.HorizontalResolution,
bm.Height / bm.VerticalResolution);
// 747 & 535 is the size of the image window (roImage).