Ejemplo n.º 1
0
        public ArrayList GetMetaData()
        {
            var metas      = new ArrayList();
            var PageNumber = new BaseClass.ObjectMetaData();

            PageNumber.Tag  = "PageNumber";
            PageNumber.Text = this.ucViewPresentationPic1.BindingSource.Position.ToString();
            metas.Add(PageNumber);
            return(metas);
        }
Ejemplo n.º 2
0
        public ArrayList GetMetaData()
        {
            return(null);


            var metas = new ArrayList();

            if (CurrentViewItem != null && CurrentViewItem.Object != null)
            {
                var DocItem = new BaseClass.ObjectMetaData();
                DocItem.Tag  = "DocItemPath";
                DocItem.Text = CurrentViewItem.Object.ToString();

                metas.Add(DocItem);


                if (DocViewer.WebBrowser1.Visibility == System.Windows.Visibility.Visible)
                {
                    try
                    {
                        var doc = DocViewer.WebBrowser1.Document as mshtml.HTMLDocument;
                        if (doc != null)
                        {
                            var DocItemPosition = new BaseClass.ObjectMetaData();
                            DocItemPosition.Tag  = "DocItemPositionWebBrowser";
                            DocItemPosition.Text = new Point(doc.parentWindow.document.body.getAttribute("ScrollLeft"), doc.parentWindow.document.body.getAttribute("ScrollTop")).ToString();

                            metas.Add(DocItemPosition);
                        }
                    }
                    catch
                    {
                    }
                }

                if (DocViewer.rch.Visibility == System.Windows.Visibility.Visible)
                {
                    var DocItemPosition = new BaseClass.ObjectMetaData();
                    DocItemPosition.Tag  = "DocItemPosition";
                    DocItemPosition.Text = DocViewer.rch.VerticalOffset.ToString(CultureInfo.CreateSpecificCulture("es-ES"));

                    metas.Add(DocItemPosition);
                }
            }

            return(metas);
        }
Ejemplo n.º 3
0
        public ArrayList GetMetaData()
        {
            var metas      = new ArrayList();
            var PageNumber = new BaseClass.ObjectMetaData();

            PageNumber.Tag  = "PageNumber";
            PageNumber.Text = this.UcViewGovReportTabTemplate1.ucViewGovReportPic1.BindingSource.Position.ToString();
            metas.Add(PageNumber);

            var IsViewWordDoc = new BaseClass.ObjectMetaData();

            IsViewWordDoc.Tag  = "IsViewWordDoc";
            IsViewWordDoc.Text = UcViewGovReportTabTemplate1.IsViewWordDocument.ToString();

            metas.Add(IsViewWordDoc);
            return(metas);
        }