banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?
Nom d'utilisateur    Mot de passe              Toujours pas inscrit ?   Mot de passe oublié ?

Annonce

GEODATA DAYS 2024

#1 Thu 29 January 2004 17:01

Simonsandrine
Invité

Impression en MapBasic

Bonjour a tous,

je cherche a lancer des impressions de WOR depuis MapBasic. Quelqu'un connaitrait il les codes qui accompagne printWin pour parametrer les impressions : format papier, orientation, numero de page, nombre de copie...?

Merci a tous

 

#2 Thu 29 January 2004 17:43

Roger Verdie
Invité

Re: Impression en MapBasic

Tu devrais voir Set Window pour definir les parametres de ta fenetre avant de l'imprimer. Tu as tout dans l'aide MapBasic.

 

#3 Mon 02 February 2004 10:55

Simonsandrine
Invité

Re: Impression en MapBasic

bonjour,

merci pour l'info,mais je n'ai pour l'instant a ma disposition que la fenetre MapBasic disponible a partir de MapInfo...dont l'aide MapBasic reste limitee. D'ou mon appel a l'aide. Pourriez vous m'en dire un peu plus ?

Merci et bonne journee a tous

 

#4 Mon 02 February 2004 13:00

Geo Maumet
Invité

Re: Impression en MapBasic

Bonjour
La doc Mapbasic donne

Prints an existing window.

Syntax

PrintWin [ Window window_id ] [ Interactive ]
window_id is an Integer window identifier

Description

The PrintWin statement prints a window.
If you include the Window clause, MapInfo prints the specified window; otherwise, MapInfo prints the active window.
The window_id parameter represents a window identifier; call FrontWindow( ) or WindowID( ) to obtain window identifiers.
If you include the Interactive keyword, MapInfo displays the Print dialog. If you omit the Interactive keyword, MapInfo prints the window automatically, without displaying the dialog.

Example

Dim win_id As Integer
Open Table world
Map From world
win_id = FrontWindow()
'
' knowing the ID of the Map window,
' the program could now print the map by
' issuing the statement:
'
PrintWin Window win_id Interactive

Pour faire un batch d'impression, ca pourrai donner
'fermer tout
Close all
'Ouvrir son document
Run application c:\chemin\mondoc.wor
'imprimer
Printwin window FrontWindow()

Attention
Le doc a imprimer doit etre correctement configure
Votre fenetre a imprimer doit etre en avant plan (la mise en page)
Votre fenetre a imprimer doit avoir la bonne config d'impression (imprimante, format,...)

Si vous voulez configurer la fenetre dans votre doc d'impression il faut utiliser le parametrage des fenetres, qui dans la doc donne:
Set Window window_id
[ Printer { Default |
[ Name printer_name ]
Orientation { Portrait | Landscape } ]
[ Copies number ]
[ Papersize number ]
Verifiez sur votre cd d'install de mapinfo que vous n'avez pas la doc mapbasic...

 

#5 Mon 02 February 2004 14:41

Abourquin
Invité

Re: Impression en MapBasic

bonjour,

vous pouvez egalement utiliser le fichier WOR.
Vous parametrez votre impression comme vous le desirez, enregistrez votre document, ouvrez le fichier WOR dans un editeur de texte : les parametres a employer seront ceux de la ligne Set Window situe apres la definition de la fenetre carte.

 

Pied de page des forums

Powered by FluxBB