Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Reports
Message
From
04/12/2001 02:54:38
Walter Meester
HoogkarspelNetherlands
 
 
To
03/12/2001 17:54:29
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00585988
Message ID:
00589097
Views:
42
Luis,

To be honest, I don't know. Anyways the version I've got was freeware as I remember. I'll send it to you by E-mail

The code I use to set the printer is:
	LPARAMETER cPrintername
		DECLARE _fpreset IN msvcrt20.dll
		 
		* This method set the printer where the report is going to be printed on.
		* It also retrieves printertype, location and remarks which can be showed in a print dialog. 
		* For more information about the functions used in this method I refer to the Focus.fll 
		* Documentation

		=_fpreset()
		cToken= PRN_GetPrnData(ALLTRIM(cPrintername),5001)
		=_fpreset()

		.Selectprinter(STR_ntoken(6,cToken), STR_ntoken(3,cToken), STR_ntoken(5,cToken))
		=_fpreset()
The fPreset is used to avoid C00005 Errors due to some HP printer drivers.


Walter,


>Thanks Walter, but I remember having seen it that focus.fll was no longer free, is that correct?
>
>TIA
>
>
>Luis
>
>
>>The focus.fll freely available from www.fastwrite.com provides a method for getting the printerdriver and port name. I've been using this fll for about three years now and it works perfectly.
>>
>>Walter,
>>
>>
>>
>>>Thanks Andreas! I remembering some code on VFP to have the Printers collection, but I'm not sure. I also think that there was a .DLL file that did, in case I find it I will tell you.
>>>
>>>
>>>Thanks anyway,
>>>
>>>
>>>Luis
>>>
>>>
>>>>In VB Printers collection will provide you the printer driver, but in VFP APRINTERS() will only give you the printer name and the port name. There are API calls (GetPrinterDriver() or EnumPrinters() ) to do this but I can't handle that in VFP code and I'm not willing to build a DLL just for this (at least not yet!).
>>>>
>>>>>How can you get the printer driver name in VB, perhaps that can help me to do it in VFP.
>>>>>
>>>>>TIA
>>>>>
>>>>>Luis
>>>>>
>>>>>
>>>>>>>>I am thinking about using Crystal Reports in my VFP application. Has anyone had any success using Crystal Reports or am I better off sticking with the Office Automation?
>>>>>>>>
>>>>>>>>Lawrence
>>>>>>>We sucessfully integrated Crystal Reports in a VFP application. I highly recommend you Craig's article on this topic: http://www.craigberntson.com/Articles/kb010.htm
>>>>>>
>>>>>>
>>>>>>Hi Hector,
>>>>>>In your application do you set the printer destination for a Crystal report? There is a SelectPrinter() method but it requires the printer driver (which in VB is not a problem at all).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform