The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Q: function Project.GetFolderWithPage()
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hajo_old

Germany
141 Posts

Posted - 02/18/2003 :  07:02:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello, all

is there a "silent" mode for processing the function
Project.GetFolderWithPage("Graph1") 


I'm using this function to get all the Graphics Pages within a Project and export them to WMF.
As the project is structured by several folders, you see during the loop the selection of the folder containing the page, and then the opening of the page. The result is an awfully flickering screen because of the opening of the graphics pages.

By "silent" I mean a hidden process, scanning the project directory for pages and doing some jobs on it.

Thanks
Hajo

-- --
Dipl.-Ing. Hans-Joerg Koch
Siemens VDO, Regensburg

SVDO_Origin1

easwar

USA
1965 Posts

Posted - 02/18/2003 :  10:38:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hajo,

Try this code: does not pop up the graph windows.

Easwar
OriginLab.


void GrExport()
{
// Declare collection of PageBase objects in project
Collection<PageBase> pgbcoll;
pgbcoll = Project.Pages;

PageBase pgb;
GraphPage gpg;

// Loop over all PageBase objects
foreach (pgb in pgbcoll)
{
// Cast PageBase to GraphPage object
gpg = (GraphPage)pgb;
// If it is really a GraphPage, then proceed to export
if(gpg)
{
// Get Name
string strName = gpg.GetName();
printf("Found Graph Page: %s\n",strName);
// Export page to WMF
using image = LabTalk.image;
image.filename$ = strName + ".wmf";
image.export.pagedpi("WMF");
}
}

}


Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000