Part of Templates and the Application Generator: the hub. 70 entries under this heading; every entry opens as its own topic.
- How to print "Page 1 of 4" on every report page without a third-party template - Print the report twice, counting pages the first time and printing the stored total the second, or insert a token and replace it after all pages exist.
- How do I print a dashed or dotted line on an ABC report? - Draw the line in code: SETTARGET to the report band, SETPENSTYLE(PEN:Dot), then LINE; or hide a placed Line control and redraw it dotted with its position and size.
- SoftVelocity PDF output shows only a small piece of each page on a new server - PDF output showing a small piece of each page on a new Windows Server was fixed by assigning a default printer on the server.
- How do I tell whether the user pressed Print or cancelled in the report previewer? - In an ABC report put code after ReturnValue = PARENT.Display in the Previewer.Display embed; True means Print was pressed, False means cancel.
- Getting the start page of each group for a report table of contents (Reported, not reproduced) - Start pages per group for a report contents list: ENDPAGE with RECORDS(PreviewQueue), a 2-pass report, or editing the WMFs were suggested, with no outcome reported.
- Free memory drops after every call to a wizard-generated ABC report (Reported, not reproduced) - Free memory fell after each call to a wizard-generated ABC report; posters suspected the poster's own code or a corrupt image, and no cause was found.
- Setting PROPPRINT:PaperWidth in a report Open embed resets the paper height to A4 (Reported, not reproduced) - Setting PROPPRINT:PaperWidth in a report Open embed reset the height to A4; the AutoPaper line and the array form were suggested, no outcome reported.
- Where to put code before or after a report break prints (no embed point for the break structure) - The report template has no embed point for the break structure; put the code in the TakeRecord embed after the Parent Call and test for the break there.
- How do I hide a report field or prompt depending on a record value? - Hide a report control in the TakeRecord embed using SETTARGET(Report) around the PROP:Hide assignment, or print a local report variable that is blank when the flag is set.
- Sending an ABC report straight to a PDF file in C5.5 with no preview: where to set SkipPreview (Reported, not reproduced) - Sending an ABC wizard report to a PDF printer without preview needed SkipPreview set in an embed; no embed was named, and PDF writer INI and registry settings were discussed.
- A report detail used as a title page is followed by a blank page (Reported, not reproduced) - A detail used as a title page left a blank page; marking it Alone and checking detail length were suggested, the poster chained several reports instead.
- "Advanced Report Generation" global extension template does not show in the template list - The Advanced Report Generation templates are Enterprise Edition only or sold separately; the poster found them under the SV group in the template list.
- Printing and reading barcodes in Clarion: is there a template? - Print barcodes with a barcode font on a normal report string, the Report Writer, Taboga templates or a DLL; a keyboard-type scanner needs no code.
- Opening a cash drawer at the end of a sale in a point-of-sale app - Open codes must reach the drawer separately from the receipt: a serial add-on, the LinePrint template writing to the port, or a dummy report sent to the port.
- Using a Word document as the template (backdrop) of a report - Replace a large bitmap backdrop with a vector WMF, or drive Word with an Office add-on template; redrawing the form in the report was rejected as too much work.
- Is the Nova LinePrint template usable in Clarion 9? - Try the Clarion 6 LinePrint template as is, or a direct-print class; Windows 7 and later issues were reported, and prepended printer control codes should pass unparsed.
- Report preview never opens after a Windows 10 update (the report prints with preview off) - Report preview that never opened after a Windows 10 update was fixed by deleting disconnected printers and setting a default printer; also check the TEMP folder.
- Printing a blank form when there is no record at all - Print a blank form with no records by OPEN(Report), PRINT(Rpt:Detail), CLOSE(Report), or a print button on the progress window; poster did not report back.
- Which embed lets a report decide whether to print a line? (CYCLE and BREAK are rejected) - Filter the detail band to 0 and call PRINT(Rpt:Detail) in the TakeRecord embed when the condition holds; ValidateRecord can return Record:Filtered; footers stayed unsettled.
- An H5 (AppBroker) app prints with the debugger on but not with it off - H5 printing from the server worked after the AppBroker service ran under an account with printer access instead of Local System; setting the printer device in global embeds was also used.
- The LinePrint template does not print for me (Reported, not reproduced) - The LinePrint template did not print for the poster; replies described its usage (device name, string, open and close, initialized COM or USB, Form Feed) with no outcome reported.
- Which embed sets the image of an image control in an ABC report? - Set the image control's property in the Process Manager's TakeRecord, before the detail PRINT; the Embeds Source view shows the spot above the Print(Detail) lines.
- Loading an IMDD in-memory table with a filtered subset of a file plus parent fields, for one report - Treat the IMDD table as an ordinary empty file: register its templates by hand, then fill it from a process run before the report.
- Line feeds sent to a receipt printer from the End of Report Generation embed come out before the report - Raw codes sent from the End of Report Generation embed print first, because the report is only printed at CLOSE(Report); send them after the close.
- Turning off the Report Wizard option to choose the sort order at runtime - Set Sort Type back to Manual in the Additional Sort Fields dialog, or press No Key on the primary file's properties in the file schematic.
- How can I send a report by e-mail? Is there a template for it? - Send a report by e-mail by printing it to a PDF driver and attaching the file with a MAPI or other e-mail template; other options were named.
- Dot matrix printing with the LinePrint template works on Windows 98 but not on XP - LinePrint failing on XP: set the port's interrupt option in Device Manager, or send the text through the Windows spooler with a Windows API class instead.
- Report items print above the header although the report designer shows them in the right place - Report items printing above the header: open the designer's Page Layout View and adjust the overlapping header, body and footer bands, then return to band view.
- Printing a field with CR and LF characters in a report (and a global memo is not allowed) - Print a memo with line breaks in a TEXT control (no RTF) using the memo as its use variable, or print each PROP:Line separately.
- Making a report detail line bold only when a condition is met (PROP:FONTSTYLE and SETFONT have no effect) - Make a detail line bold on a condition by calling SETTARGET(Report) after the report is open and setting the font style on each control, not on the band.
- Turning the report preview WMF files into PDFs without copying them first - Preview WMF file names sit in the PrintPreviewQueue; set PROP:TempNameFunc for their location, copy the queue and FREE it before close to keep the files.
- Printing a report that sits on a window procedure, and adding the preview - A report on a window procedure is printed by hand with OPEN, PRINT(Detail), CLOSE; preview needs a PreviewQueue and a PrintPreviewClass object.
- A report control for text that wraps over several lines, like a PROMPT on a window - A report has no PROMPT-style wrapping text; a STRING does not wrap and a TEXT control does, so fill a TEXT control in code or use one STRING per line.
- Printing a report OR creating a PDF depending on a parameter (the report always prints) - To print or create a PDF by parameter, wrap the generated PDF target lines in embeds with an IF on your own option variable.
- How do I print the entries of a queue as a second detail band of an ABC report? - Filter the second detail band to False, then in the TakeRecord embed after the first PRINT loop over the queue with GET and PRINT(RPT:Detail2), then FREE the queue.
- Getting the current page number during a report so it can be stored in a table (Reported, not reproduced) - Getting the current page number during a report was called impossible; a poster tried PROP:TempNameFunc's page argument in a global, another said it would not work.
- How do I send a formatted report (tallies, breaks) to Excel, ideally from the previewer? - CSV export loses report formatting; a commercial Office Inside template adds Excel as a report target, with better results for columnar reports.
- A report saved as PDF cuts off the bottom of some words, preview and print are fine (Reported, not reproduced) - Saved PDF clipped the bottom of words while preview and print were fine; posters suggested default control heights, transparent strings and checking the customer's DPI, no outcome.
- How do I send a report straight to PDF with no preview and no progress windows? - Set Runtime Skip Preview to TRUE with the PDF report target and hide-progress option; add 0{PROP:Hide}=TRUE in Init or RETURN Level:Notify in Previewer.Display.
- Priming the file name in the report preview's File / Save As PDF dialog (Reported, not reproduced) - Priming the Save As PDF file name from the preview: SetFileName saved at once without a dialog; a Previewer TakeAccepted idea went untried.
- Report grand-total footer leaves space on every page and splits break groups - A grand-total footer band reserved space on every page; use a surrounding break on a never-changing local variable and put the band as its group footer.
- Alternating (grey bar) detail color does not change in a third-party report wizard report - Grey bar coloring did nothing in a third-party wizard report because the detail band is not printed; set Target{prop:color} instead of the detail band's background.
- Output to TXT report extension: how to put a form feed between pages - Add a form feed write in the text report generator class (ClosePage, skipping page 1) to get an FF between pages of a TXT report.
- Letting the user choose which columns a report prints - The standard templates give no column picker; replies named add-on report and query wizards, report builders and browse export tools for user-chosen columns.
- Exporting the data of any report to a CSV file without coding each report - Export a report to CSV with the text generator, adding commas in the report, or use a free export template; the poster found the template worked well.
- Printing one report from eight different queues: which embed points? - Print several different queues by hand-coding the report with a PrintPreviewClass, hiding bands, or looping the queues in TakeCloseEvent and printing details there.
- A KEYBOARD() cancel check in a report embed is suddenly ignored while printing - A KEYBOARD cancel check in a report loop was ignored until the poster drained pending keys with LOOP WHILE KEYBOARD(); ASK and SETKEYCODE(0) before the loop.
- Can the report template print a report from a queue instead of a file? - To report on a queue, set Data Source from File to Queue in the report properties; the template still needs a file but does not use it.
- The right-most character of a report prints cut in half with one printer driver - Right-most report character printed half with one printer driver: keep content clear of the unprintable edge by widening margins, since the report is a device-independent metafile.
- TinTools Report Viewer has no effect after the Clarion patches: the standard preview still appears - After the C55f patch a third-party report viewer had no effect; set %CWTemplateVersion in CW.TPL back to 'v2.003' because templates read it to pick the template set.
- Hand-coding Report-to-PDF and the report preview into a SOURCE template procedure: the classes are not recognized - Hand-coded Report-to-PDF classes were not recognized in a SOURCE procedure until the INCLUDE files the templates put in the module data section were copied in too.
- Range limits from local variables on a report or process say "no records to process" after a Pause window - Range limits were applied before the Pause window values existed; call AddRange on ThisReport or ThisProcess in the Pause button ACCEPTED embed before the generated code.
- Skipping a report row when a total computed from child records is zero (balance due) - To skip a parent whose total comes from child records, sum the children after the parent TakeRecord call and RETURN Level:Benign before the PRINT.
- A multi-line text box in a report detail band jumps to the next page instead of printing across pages - A multi-line plain text box can be split across pages with the LineCount help technique; a third-party template also splits text, RTF was not settled.
- A second print button on a browse always prints the first record, not the highlighted one - Use a plain button calling the report with Initiate Thread off and range limit Current Value; or Fetch the record and pass its key through a global.
- Adding a Select Printer button to the standard report previewer, to print one report to two printers - The preview code is in PrintPreviewClass.Display, not a template; call the report in a loop with a printer dialog, or reprint the preview files through a dynamic image report.
- "ASSERT: progress controls use variable not found!" on a report procedure after converting an old app - ASSERT progress controls use variable not found came from missing or default-named #ORIG entries in the window source; copy the USE names into the #ORIG entries.
- How do I move a control in a report header from an embed, based on a global value? - Move a report control in the OpenReport embed after the parent call, naming the report band in SETTARGET and minding the report units.
- How do I filter the child records of the report Child File extension template? - Filter report child records by setting the child view's Prop:Filter before it opens, repeating the parent link in the filter expression.
- Converting TXR reports from the old Report Writer to REPXL fails, especially with dimensioned fields - The new REPXL Report Writer rejects dimensioned fields and converts TXR files unreliably, so rewrite the reports from scratch instead.
- ABC report reading a PROP:SQL join: only 4 of the 14 fields hold the right data after NEXT - A SELECT * fills the record in table column order, so make the dictionary field order match the SQL table, name the columns, or read a join into a generic table.
- Thousands of cla*.tmp files pile up in the %TEMP% folder after printing or previewing reports - Previewable reports write one WMF page image per page as a cla tmp file in the temp folder; a killed or crashed program leaves them behind, so delete them.
- A report that loops through one parent file and ten child files with embeds takes minutes to print on SQL (Reported, not reproduced) - A parent-plus-ten-children report was slow on SQL; views, schematic joins, ValidateRecord embeds and memory queues were suggested, with no confirmed outcome.
- How do I embed the CSS into an HTML report so I can distribute a single file? - No template setting embeds the CSS in an HTML report; merge the style sheet into the HEAD of the generated file with your own code.
- Where do I embed code to catch the report's WMF preview pages before the report flushes them? - Catch the preview pages in the Window Manager AskPreview embed before the parent call; set Report PROP:FlushPreview to True so the last page is written out.
- Enumerating the controls of a report detail band and reading their names and values (Reported, not reproduced) - Looping a report detail band with PROP:NextField listed field contents and types, but Cla$FIELDNAME never returned control names; the progress window stayed the target.
- Report procedure ends with "Window is not open" and then "memory block free'd twice" - Setting a report property before the report is open gives "Window is not open"; set it in the OpenReport method embed after the parent call.
- A three-file report prints all child records under every parent - Child records repeated under every parent because of the file schematic order and a break on a non-key field; fix keys, or print the detail band from an embed.
- Sending an existing PDF file to a printer without Adobe Reader, using Tracker PDF Tools - To print an existing PDF without Adobe Reader, Tracker PDF Tools v3.6 has a PrintDocument method in its viewer include file.
- A BLOB picture does not print on a report from a Process procedure - Type the BLOB field name into the Process hot field list, and fetch the record before the image code because the view does not read the BLOB.