Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preview a LABEL
Message
De
11/10/2013 02:15:23
 
 
À
10/10/2013 17:56:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01585183
Message ID:
01585244
Vues:
48
>>>>>Hi All:
>>>>>
>>>>>I'm trying to print a label. But before printing, I want the user to preview and then choose the printer.
>>>>>
>>>>>Usually I would use
>>>>>
>>>>>
>>>>>LABEL FORM barlabs TO PRINTER PROMPT PREVIEW
>>>>>
>>>>>
>>>>>But in this case, my form is small and I do not have the VFP main screen, since I'm compiling to an exe and I put screen=off in config.fpw.
>>>>>
>>>>>So I tried the following:
>>>>>
>>>>>
>>>>>DEFINE WINDOW joe FROM 1,0 TO 40,180 IN DESKTOP GROW 
>>>>>ACTIVATE WINDOW joe
>>>>>
>>>>>*!*	LABEL FORM barlabs TO PRINTER PROMPT PREVIEW in window joe
>>>>>LABEL FORM barlabs TO PRINTER PROMPT in window joe
>>>>>
>>>>>RELEASE WINDOWS joe
>>>>>
>>>>>
>>>>>The problem is that with the following, the toolbar with the little print icon is missing:
>>>>>
>>>>>
>>>>>LABEL FORM barlabs TO PRINTER PROMPT PREVIEW in window joe
>>>>>
>>>>>
>>>>>And with this, I don't get a chance to preview:
>>>>>
>>>>>
>>>>>LABEL FORM barlabs TO PRINTER PROMPT in window joe
>>>>>
>>>>>
>>>>>How can I accomplish what I want?
>>>>>
>>>>>Thanks,
>>>>>
>>>>>Yossi
>>>>
>>>>Hi,
>>>>have you tried FoxyPreviewer already? This application will perform what you want.
>>>>Regards,
>>>>Koen
>>>
>>>It's nice, but I still can't figure out how to preview to a different window. Right now it's displaying within the space of the form and my form is tiny and I want to keep it that way.
>>>
>>>Thanks,
>>>
>>>Yossi
>>
>>Hi,
>>Foxpreviewer is showing a preview in his own p. This form can not be bigger than your form, unless your form is not showwindow=2
>>what are the dimensions of your form? Can you show a picture of FP in your form in action?
>>Rgds,
>>Koen
>
>Koen:
>
>You're up late!
>
>I figured out partially what to do:
>
>My main program calls the form NAME, so I have a reference to it:
>
>
>DO c:\foxypreviewer\foxypreviewer.app
>
>CLOSE all
>DO FORM barlabs NAME Barlabs1
>read EVENTS
>
>
>Then, the form call a program which does all the processing for the label. In this program, when I call the report, I first maximize (later I will set the width more closely).
>
>barlabs1.windowstate = 2
>LABEL FORM barlabs preview
>barlabs1.windowstate = 0
>
>
>However, #1 I can't see a way to control the size of the Foxypreviewer window! It does not expand to occupy the entire window of the maximized form.
>
>And #2 everything on the toolbar is readonly; I can't click anything on it!
>
>And yes, my form is showwindow=2
>
>Thanks a lot,
>
>Yossi

Hi,

in above code,
why do you change the form barlabs1 to windowstate =0
what is this form barlabs1 and what is this form barlabs?
may be better if you upload the form here.
Rgds,
Koen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform