PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • This lesson will teach you the following concepts
  • Importing elements
  • Exporting elements
  • Specific import operations
  • Importing a WINDEV project
  • Importing an HTML page
Lesson 9.3. Import/Export
This lesson will teach you the following concepts
  • Importing elements from a project to another one.
  • Exporting the elements of your project.
  • Specific import operations (HTML pages).

Estimated time: 10 mn
Previous LessonTable of contentsNext Lesson
Importing elements
You have the ability to import existing WEBDEV elements into your project. All types of WEBDEV elements can be imported:
  • pages, reports,
  • classes, components,
  • procedures, ...
  • To import existing elements into the current project:
    1. On the "Project" pane, in the "Project" group, expand "Import" and select "WEBDEV elements and their dependencies...".
    2. Click "..." and select the directory containing the elements to import (the directory must include WEBDEV elements).
    3. Validate. WEBDEV returns the list of elements that can be imported (the sub-directories are ignored).
    4. Select the elements to import and validate. The elements (and all files used by these elements : images, ...) are now included in the project.

Note

The "Calculate" button (found in the import window) is used to calculate the size of selected elements along with their dependencies.
Exporting elements
You also have the ability to export elements from your project to another directory for example. These elements can be re-used in other projects.

Caution!

Exporting elements is a lot more than a simple copy of elements. It is actually the only safe method for transferring a project element along with its dependencies (images, icons, ...). A practical solution for transmitting pages along with their dependencies by email for example.
  • To export elements from your project:
    1. On the "Home" pane, in the "General" group, expand "Save" and select "Export .. To a directory...".
    2. In the window that is displayed, select the project elements that will be exported.
    3. Specify the name of destination directory (or select it with the "..." button).
    4. Validate. Then, the elements are exported to the specified directory. These elements are still available in your project.

Note

The "Calculate" button (found in the import window) is used to calculate the size of selected elements along with their dependencies.
Specific import operations

Importing a WINDEV project

WEBDEV allows you to import a window or a full WINDEV project into a WEBDEV project. During this import:
  • The windows are changed into pages.
  • The codes are changed into server codes.
  • The elements without equivalent in WEBDEV are imported as comments or as separated elements.
  • To import a WINDEV project into a WEBDEV project:
    1. On the "Project" pane, in the "Project" group, expand "Import" and select "A WINDEV or WINDEV Mobile project". The wizard for importing a WINDEV or WINDEV Mobile project starts.
    2. Select the WINDEV project to import. This project will not be modified and a new WEBDEV project will be created.
    3. Specify the name and location of the WEBDEV project to create.
    4. If an analysis is linked to the project, specify its name, its location, and whether the analysis must be used by the WEBDEV project.
    5. Specify the elements that will be shared between the WEBDEV project and the WINDEV project (common elements such as "Reports", "Classes", ...). If the elements are shared, they will not be copied into the WEBDEV project.
    6. Validate. The WINDEV project is changed into WEBDEV project.
  • To import WINDEV elements into a WEBDEV project:
    1. Open the WEBDEV project into which the element must be imported.
    2. On the "Project" pane, in the "Project" group, expand "Import" and select "WINDEV or WINDEV Mobile elements". The import wizard starts. Select the WINDEV project containing the elements to import or select the WINDEV elements to import. Go to the next step.
    3. Specify the elements that will be shared between the WINDEV and WEBDEV projects. These elements will not be copied into the WEBDEV project.
    4. Validate. The specified elements are automatically imported into the current WEBDEV project.

Importing an HTML page

A page found in a non-WEBDEV site is useful? You want to retrieve its interface? Nothing's easier.
WEBDEV gives you the ability to import your existing HTML pages into your WEBDEV project. Each imported page becomes an element of your WEBDEV site. This page can be modified!

Note

The feature for importing HTML pages is a great help given to the developers of WEBDEV sites. It is not a feature for "grabbing" Internet sites.
However, some display differences may be noticed between the HTML page before the import and the HTML page after the import.
  • To import an HTML page into a WEBDEV project:
    1. Open your WEBDEV project (for example: an existing project or a new project).
    2. On the "Project" pane, in the "Project" group, expand "Import" and select "An HTML page...". The wizard for importing HTML pages starts.
    3. Specify the location of HTML page. This page can be a file found on your computer ("..." button) or an Internet address (for example: http://www.mywebdevsite.com/mapping.html). The HTML page is displayed in the "Page preview" frame.
    4. Validate. A new WEBDEV page was just created.
    5. Save the page. The page is automatically added to the list of project elements.
Previous LessonTable of contentsNext Lesson
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment