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,597 of 9,834    |
|    Anne Wainwright to All    |
|    PrinterOptionInfo and ReportPrintInfo va    |
|    22 Jan 09 19:14:13    |
   
   From: anotheranne@fables.co.za.invalid   
      
   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   
      
   --- 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