Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.paradox    |    To crash or not to crash, asks Borland    |    9,834 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,601 of 9,834    |
|    Tom Krieg <"Please use the website to Anne Wainwright    |
|    Re: PrinterOptionInfo and ReportPrintInf    |
|    23 Jan 09 11:14:48    |
   
   Anne,   
      
   What version of Paradox are you using? If 10 or greater, ISTR I had some   
   problems doing this with 10 quite a while back, and with Bertil's help   
   worked out to set the paper size (A4) using the old syntax, and then set   
   clip-to-width, orientation etc using the new, dynarray syntax.   
      
   Anne Wainwright wrote:   
   > Hi all, (and best for 2009)   
   >   
   > I had to cure a problem of printing a report, the windows default   
   > printer driver would pop up each time and (on Pdox alone,and only late   
   > this past year) it decided to start with a postcard sized default paper   
   > size. No way to keep the default at A4 and clip-to-width set.   
   >   
   > Looking at the pdox examples I saw the PrinterOptionInfo type variable   
   > which allowed to set certain requirements, and the ReportPrintInfo type   
   > which allowed to set others, with some overlap. Neither would set all that   
   > I wanted. Yet the examples shown for each both concluded with   
   > print(varname). Thus I saw an either-or situation.   
   >   
   > I did quite easily get it to work, and my basic code structure is here   
   >   
   > var   
   > prnOptions PrinterOptionInfo   
   > repInfo ReportPrintInf0   
   > ; other var items   
   > endVar   
   >   
   > ; set printer options showing overlap item and wanted item   
   > prnOptions.Orientation = prnPortrait   
   > prnOptions.PaperSize = prnA4   
   >   
   > ; set report printing options showing overlap item and wanted item   
   > repInfo.orient = PrintPortrait   
   > repInfo.panelOptions = PrintClipToWidth   
   >   
   > ; lots of other code follows to generate report thisbuy.rsl   
   >   
   > if printerSetOptions(prnOptions) then   
   > thisbuy.print(repInfo)   
   > else   
   > errorShow ("Could not set printer options.")   
   > endIf   
   >   
   > ; more code   
   >   
   > thus I left the printerSetOptions as just set and 'printed' the repInfo   
   > ones. I didn't try it the other way around, but this seemed the 'right'   
   > thing to try.   
   >   
   > Well it works fine, but any comments welcome on this small matter. Is   
   > this the best approach, are the two variable each typically used under   
   specific   
   > circumstances?   
   >   
   > regards   
   > Anne   
   >   
   >   
      
      
   --   
   Tom Krieg   
      
   ---------------   
   http://www.krieg.com.au   
   Please use the contact page to contact me via email   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca