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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Q: function Project.GetFolderWithPage()

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
hajo_old Posted - 02/18/2003 : 07:02:18 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 02/18/2003 : 10:38:14 AM
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");
}
}

}



The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000