Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with FoxyPreviewer and Printername
Message
 
À
28/01/2021 07:23:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01677938
Message ID:
01677944
Vues:
59
>>Hi there,
>>
>>my customer/distributor has a lot of customers where he has defined printernames with additional info in quotation marks like:
>>OKI C610(PCL) 'Storno'.
>>This names cause an error.message by FoxyPreviewer saying that the printer can not be found. The VFP-Previewer accepts these names.
>>Can anyone help me with this problem? Changing the printernames is, according to my customer, not an option.
>>
>>Best regards
>>
>>Thomas
>
>>Have you tried assigning the name into a variable, and using that variable >instead of the printer name in FP?
>
>Yes, I have a var cprinter which gets the above mentioned strimg, assign it to the cPrintername-property and start the preview. The printer is shown in the printer-dialog of FP and when I choose to print, the error happens.

>Just for curiosity, does it work if you skip FP? I mean, are you able >to "connect" the printer to VFP9 so that you can for instance List Status to >Print?

I am getting a bit confused. I loaded another project which does not use FP but when I trie to call the print report-code it loaded FP. I restart the pc and tried again it it still loads FP. I haven't got a clue why this happens.. I then issued a "set reportbehaviour 80" and now it loads the original report preview from VFP. There I can choose the printer with the quotation marks in its name and everything works. By the way , in the options settings "Set Reportbehaviour 80" is the defaukt setting.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform