Brian - You are a prince, thanks so much for your help! Will slowly start to learn this stuff and rewrite reports Jon
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Brian Hancock Sent: Monday, August 15, 2011 4:47 AM To: [email protected] Subject: Re: [Dataperf] Print to file Hi Jon, For a really simple 3-column report in HTML try this: In First Page Header: <html> <head> <title>My DP Report Title</title> </head> <body> <table border="1" cellpadding="3" cellspacing="0"> <tr> <th align="center" valign="middle">Heading Col1</th> <th align="center" valign="middle">Heading Col2</th> <th align="center" valign="middle">Heading Col3</th> </tr> In the DP Report Body add this, using F4 to place your data in the DPData1, etc placeholders <tr> <td align="left" valign="middle">DPData1</td> <td align="right" valign="middle">DPData2</td> <td align="center" valign="middle">DPData3</td> </tr> In the Final Footer add this: </table> </body> </html> The indenting is only for readability, so you ca put it all flush left if you like, it up to you. Set the report to create a File and name it something with a .HTM. HTML is a little like WordPerfect Reveal Codes, and CSS is a little like WordPerfect Styles. You can start as simple as you like and then add more things as you need it. Styles can either be added directly to the HTML eg <body style="font-family:Arial;"> Which is called an inline style Or embed in a style block in the head of the document eg <head> <style> body { background-color:#d0e4fe; } td { font-family:Arial; } </style> </head> Or in an external stylesheet, which is referenced from within the head of the page eg <head> <link rel="stylesheet" type="text/css" href="mystyle.css" /> </head> For DP styling from external CSS files are generally a good option, as you can keep the presentation complexity out from the DP Report, and concentrate more on the data. The following are two good tutorials to get you started. http://www.w3schools.com/html/default.asp http://www.w3schools.com/css/default.asp Regards Brian _____ From: [email protected] [mailto:[email protected]] On Behalf Of Jong Sent: Saturday, 13 August 2011 5:39 AM To: [email protected] Subject: Re: [Dataperf] Print to file Brian, Thanks for the tip -- maybe HTML the best way to go, then bring into Word (maybe Wordpad simplest) and print or have outlook send. I'm low IQ on HTML, but sounds like a lot of codes to put into my reports -- is a there a "HTML for idiots" ref out there? I'm not famililar with CSS, that is this in a nutshell? Jon -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Brian Hancock Sent: Sunday, July 31, 2011 7:58 AM To: [email protected] Subject: Re: [Dataperf] Print to file I should have added that you need to change the %1 to the name of the file to print _____ From: [email protected] [mailto:[email protected]] On Behalf Of Brian Hancock Sent: Sunday, 31 July 2011 11:37 PM To: [email protected] Subject: Re: [Dataperf] Print to file If you want rich printing capabilities why wouldnt you use HTML and CSS. DP is a whiz at creating HTML pages, and you can mark these up with CSS to have great control of printing. You just need to output the report as a file, and you can either right click on the file in Explorer and click Print, If you do not want so much interactivity you could set up a batch file to periodically look for any files in a folder and then run the command: rundll32.exe C:\WINDOWS\System\mshtml.dll,PrintHTML "%1" which will print the HTML using CSS, images, etc etc. If you wanted to convert the HTML to something else, eg .DOC, .PDF, or you wanted something to sit and monitor a folder, and didnt wnt to write the batch file yourself then the (not free) program TotalHTMLConverter and Total FolderMonitor might be useful. I have not personally used either, but they look quite capable and easy http://www.coolutils.com/TotalHTMLConverter Brian _____ From: [email protected] [mailto:[email protected]] On Behalf Of Jong Sent: Sunday, 31 July 2011 1:07 AM To: [email protected] Subject: [Dataperf] Print to file Copy to printer or PDF conversion: does this take away all the formating and leave me with plain text? Jon -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bob DeRosier Sent: Friday, July 29, 2011 9:19 PM To: [email protected]; [email protected] Subject: Re: [Dataperf] virtualization "print to file" just captures the print stream to a file instead of sending it to the printer. If is just straight text (no print codes), it should come up in Word fine. Otherwise, you can copy it to the printer or use a text editor to modify it or send the file to a PDF converter to create a PDF or just right click on it in windows explorer and send it the printer .... Bob At 08:28 PM 07/29/2011, Jong wrote: "Print to file" has always been a mystery to me, tried before and couldn't get it to come up in Word. So how does someone print the resulting file? JOn -----Original Message----- From: [email protected] [ <mailto:[email protected]> mailto:[email protected]] On Behalf Of Tony Perez Sent: Friday, July 29, 2011 7:38 PM To: [email protected] Subject: Re: [Dataperf] virtualization Would using the "Print to file" choice using the Reports function and saving it as a .doc or other extension for printing be a viable workaround? Regards to all, Tony -----Original Message----- From: [email protected] [ <mailto:[email protected]> mailto:[email protected]] On Behalf Of Christopher Dunn Sent: Friday, July 29, 2011 3:50 PM To: [email protected] Subject: Re: [Dataperf] virtualization It has been a while since I used direct printing (only remaining DP app in production doesn't print), but if I recall correctly, the way I got this to work in XP, was to share the USB printer (say, as "MyPrinter"). Then use: "net use lpt2: \\MyComputer\MyPrinter" command to map the usb printer. -chris On 2011-07-29 6:04 PM, Jong wrote: > Fabio: > > Did you use VMWare 7 for this? I bought a copy and am waiting for a > new Toshiba Protégé portable to arrive to install. I hope to use > Dataperfect (which I run under the old WordPerfect Office) to continue > running my patient database program. Using usb output for a printer > is a must. I've seen a usb to parallel port converter at > www.cyberguys.com <http://www.cyberguys.com/> but their support told me it wouldn't work unless > program running it saw the virtual parallel port. > SO, hope you can figure it out -- otherwise it leaves anyone with a > new computer dead in the water. > > Jon Ong MD > > -----Original Message----- > From: [email protected] > [ <mailto:[email protected]> mailto:[email protected]] On Behalf Of Muller Fabio > Sent: Friday, July 29, 2011 2:46 PM > To: [email protected] > Subject: [Dataperf] virtualization > > > Gentlemen , I know you are already very skilled in virtualization but > I didn't find any vmware appliance ready with DP, so I decide to build > one. It seems to be working fine, my only problem is with printing, as > I don't have a parallel print but an USB and I'm still trying to put > the appliance to print. I'm trying to redirect the LPT1 to USB via > windows but I'm not getting to much success. I tested dosbox megabuild > too but I'm having problems with CTRL-F keys. Printing is working fine > in DOXBOX after some changes in the config file. Does anybody have > success to remap the CTRL-F Keys ? Is it possible to copy the config > file and send in a msg to the list ? Regarding the vmware appliance, > as soon as I got success with the printer I'll try to let the appliance available somewhere. > > Rgds. > _______________________________________________ > Dataperf mailing list > [email protected] > http://lists.dataperfect.nl/mailman/listinfo/dataperf > > _______________________________________________ > Dataperf mailing list > [email protected] > http://lists.dataperfect.nl/mailman/listinfo/dataperf > _______________________________________________ Dataperf mailing list [email protected] http://lists.dataperfect.nl/mailman/listinfo/dataperf _______________________________________________ Dataperf mailing list [email protected] http://lists.dataperfect.nl/mailman/listinfo/dataperf _______________________________________________ Dataperf mailing list [email protected] http://lists.dataperfect.nl/mailman/listinfo/dataperf
_______________________________________________ Dataperf mailing list [email protected] http://lists.dataperfect.nl/mailman/listinfo/dataperf
