>We have Version 4.6 of Crystal Reports that came with an earlier version of Visual Studio but I could not find a way to use PCL files or metafiles. Is there a newer version of Crystal Reports included with Visual Studio 7 and does it add this import capability?
>
To date, there is no VS 7 - the most recent MS product is VS6. Seagate now sells the commercial version of Crystal Reports. The version of Crystal reports installed to my system with VS6 was Crystal Reports 4.5
Since PCL and metafiles (I'm assuming that you mean WMF-formatted files) are graphic rendering formats, and PCL in particular requires you to use a PCL-compliant printer (AFAIK, there aren't any PCL-PostScript converters for example.)
>The programmer who wrote the DOS version used COPY "taxformfile" TO LPT1, sent the FOXPRO data to the printer, then issued an eject command to get data and form on a single page. Is there anyway to do something similar in Windows?
I use stored macros on HP LaserJets to generate pre-printed forms, but this pretty much precludes the use of the native report writer without a tremendous amount of work. If your 'PCL file' were actually a laser macro, you could either pre-load it and trigger it in the header/footer of your output, or output to file and use something like the CopyFile() API to send the two files out to the printer without involving the WIndows spooler (I have a FAQ entry showing how to copy a file to a port or UNC using the CopyFile() API you can look at. I'd not recommend this in a network print environment, since you can't guarentee the order of output easily for multiple files sent to a remote printer; there's a spooler and print manager standaing between you and the printer that might queue up something between jobs, or if it's a pooled printer (multiple printers on a single common queue) that the same printer would service both files. In these situations, you'd want to concantenate the two files into a single output stream and send the concatenation as a single stream.