Printing onto file under 9i

HI Gentlemen,
Could you tell me where I am wrong with this small portion of code?
Ino Lawrensse was so kind as to send me a PL/SQL segment that I customized to my needs for CASH.
Now it simply returns "Report cannot be executed" when starting from Oracle Forms 9i. I get 41214 as error code. However, it works for destination types PRINTER and CASH (the latter with web.show_document). I also tried to type in the correspondong URL--it works fine.
Thank you, regards from
Miklos Herboly
/* Report object mybill exists in the form */
declare
al_button number;
fn_original constant varchar2(255) := 'Mybill.prn';
pl_id ParamList;
pl_name constant VARCHAR2(255) := 'paramlist';
rep constant varchar2(255) := 'E:\bills\mybill.rep';
repid report_object;
v_rep varchar2(100);
v_jobid varchar2(10);
v_repserver varchar2(20) := 'myrepserver';
BEGIN
/* Create the Parameter List into pl_id... */
repid := find_report_object('mybill');
Add_Parameter(pl_id,'bill_id',TEXT_PARAMETER,:bill.id);
Add_Parameter(pl_id,'group_id',TEXT_PARAMETER,:group.id);
Add_Parameter(pl_id,'copy_type',TEXT_PARAMETER,'Original');
set_report_object_property(repid,REPORT_DESTYPE,FILE);
set_report_object_property(repid,REPORT_DESNAME,fn_original);
set_report_object_property(repid,REPORT_SERVER, v_repserver);
set_report_object_property(repid,report_filename,rep);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
v_rep := RUN_REPORT_OBJECT(repid, pl_id);
END;
------------------------

Preview is something from a client/server configuration. Forms and Reports 9i cannot be run in c/s configuration anymore, only in web mode. You have to preview the report in a browser now.
You may have to rewrite your code in Forms if you called reports via RUN_PRODUCT. This is an example in 9i:
declare
  repid        report_object;
  v_rep        varchar2(100);
  v_jobid      varchar2(10);
  v_repserver  varchar2(20);
begin
  repid       := find_report_object('test');
  v_repserver := 'repserver9ids';
  set_report_object_property(repid,REPORT_DESTYPE,CACHE);
  set_report_object_property(repid,REPORT_DESFORMAT, 'HTML');
  set_report_object_property(repid,REPORT_SERVER, v_repserver);
  set_report_object_property(repid,report_filename,'test3');
  set_report_object_property(repid,report_other,'dept_id=10');
  v_rep   := RUN_REPORT_OBJECT(repid);
  if v_rep is not null then
    v_jobid   := substr(v_rep,(instr(v_rep,'_',-1)+1));
  end if;
  if v_jobid > 0 then
    web.show_document ('/reports/rwservlet/getjobid'|| v_jobid ||'?server='|| v_repserver,'_blank');
  end if;
end;

Similar Messages

  • FAQ: Fix for Problem Printing PostScript "to file" Under Windows 2000

    PROBLEM
    A number of Acrobat users under Windows 2000 have reported a problem in which printing via the PostScript driver fails when printing "to file" instead of to a standard printer port (such an LPT, USB, TCP/IP port, or even Acrobat's internal port). Printing "to file" refers to the ability to check an option in programs such as FrameMaker or Microsoft Word that causes the PostScript that would have gone to a "real" printer port, to go to a specified file name, prompted for by the driver or application itself. The symptom of the failure may be either (1) no file produced and/or (2) a nondescript error message about "unable to print."
    Although we have not yet heard of this problem occurring under Windows XP, we have no reason to believe it couldn't given the extreme similarity in architecture and software components. If you are seeing this with Windows XP, please advise me of this via email and simply substitute "Windows XP" for "Windows 2000" for your purposes in this posting.
    CAUSE
    The problem is caused by a missing printing port named "FILE:" used by the driver whenever it, guess what, prints "to file." This port is automatically created when Windows 2000 is installed and normally would never disappear. What seems to be happening, based upon reports that I have received from several end users, is that under some conditions yet unidentified, uninstalling one version of Acrobat in preparation for installation of another (newer) version of Acrobat causes the "FILE:" port to be deleted from the system. This printing port deletion does not appear to be caused by any end-user error.
    Adobe's Acrobat Quality Assurance group has been alerted to the problem, but to date has been unable to internally reproduce the problem. We would appreciate any information from any user who encounters this problem in terms of exactly how the Acrobat Distiller printer instance was being used prior to an uninstall of Acrobat (for example, were you printing a FrameMaker book "to file" with the
    Acrobat Distiller printer instance for purposes of subsequently distilling the whole book manually?)
    FIX
    Fortunately, it is very easy to add the "FILE:" port back into the operating system:
    (1) Logon to Windows 2000 as a user with Administrator privileges.
    (2) Go to Start=>Settings=>Printers.
    (3) Select File=>Server Properties.
    (4) Click the "Ports" tab.
    (5) Click "Add Port".
    (6) Select "Local Port" and click "New Port".
    (7) In response to "Enter a port name:" respond "FILE:" (without the surrounding quote marks, of course) and click OK.
    (8) The "FILE:" port should now be in the list of available ports. You may close the remaining dialogs.
    At this point, printing "to file" should work correctly. Most likely, you will not see the problem reoccur unless you do another round of uninstalls of Acrobat.
    - Dov

    You need to download and install the ADPDF9.PPD printer description and use it instead of Device Independent.

  • README: Fix for Problem Printing PostScript "to file" Under Windows 2000

    PROBLEM
    A number of Acrobat users under Windows 2000 have reported a problem in which printing via the PostScript driver fails when printing "to file" instead of to a standard printer port (such an LPT, USB, TCP/IP port, or even Acrobat's internal port). Printing "to file" refers to the ability to check an option in programs such as FrameMaker or Microsoft Word that causes the PostScript that would have gone to a "real" printer port, to go to a specified file name, prompted for by the driver or application itself. The symptom of the failure may be either (1) no file produced and/or (2) a nondescript error message about "unable to print."
    Although we have not yet heard of this problem occurring under Windows XP, we have no reason to believe it couldn't given the extreme similarity in architecture and software components. If you are seeing this with Windows XP, please advise me of this via email and simply substitute "Windows XP" for "Windows 2000" for your purposes in this posting.
    CAUSE
    The problem is caused by a missing printing port named "FILE:" used by the driver whenever it, guess what, prints "to file." This port is automatically created when Windows 2000 is installed and normally would never disappear. What seems to be happening, based upon reports that I have received from several end users, is that under some conditions yet unidentified, uninstalling one version of Acrobat in preparation for installation of another (newer) version of Acrobat causes the "FILE:" port to be deleted from the system. This printing port deletion does not appear to be caused by any end-user error.
    Adobe's Acrobat Quality Assurance group has been alerted to the problem, but to date has been unable to internally reproduce the problem. We would appreciate any information from any user who encounters this problem in terms of exactly how the Acrobat Distiller printer instance was being used prior to an uninstall of Acrobat (for example, were you printing a FrameMaker book "to file" with the
    Acrobat Distiller printer instance for purposes of subsequently distilling the whole book manually?)
    FIX
    Fortunately, it is very easy to add the "FILE:" port back into the operating system:
    (1) Logon to Windows 2000 as a user with Administrator privileges.
    (2) Go to Start=>Settings=>Printers.
    (3) Select File=>Server Properties.
    (4) Click the "Ports" tab.
    (5) Click "Add Port".
    (6) Select "Local Port" and click "New Port".
    (7) In response to "Enter a port name:" respond "FILE:" (without the surrounding quote marks, of course) and click OK.
    (8) The "FILE:" port should now be in the list of available ports. You may close the remaining dialogs.
    At this point, printing "to file" should work correctly. Most likely, you will not see the problem reoccur unless you do another round of uninstalls of Acrobat.
    - Dov

    You need to download and install the ADPDF9.PPD printer description and use it instead of Device Independent.

  • Printer CP1525nw no "HPToolbox FX" software in program file under HP - no where to download from

    I have no "HPToolbox FX" software in program file under HP.  and I can not find anywhere to download CP1525 FX software from.

    Hello,
    You'll need to install the full software solution to get the ToolboxFX software installed.
    Here is a link to download the Full Software Solution
    LaserJet CP1525
    Thanks!
    I work for HP.

  • Cannot print PDF files on Mac OS X

    Hi,
    since some update from Reader 8.1 to 8.1.2 I cannot print PDF files anymore. Meanwhile I installed Reader 9, but with no luck.
    If I crank up the preferences I get the error "Failed to load an application resource (internal error)." ... maybe there is something wrong with the installation, but even an reinstall doesnt fix it.
    If I try to print I get only the message "The document could not be printed" and then "There were no pages selected to print." ... no matter what PDF I try to print.
    The Apple Preview works without any problems, so the PDFs should be good.
    Can anyone help me on this ... its really frustrating.
    Best Regards
    --Michael

    I had this same problem. I did a clean install of OS X 10.5.6 to an USB hard drive, installed Adobe Reader 9, and tried printing. It worked fine. Then I cloned the external drive back onto the internal drive and it failed with the same no pages selected problem.
    It turns out that my filesystem on my internal hard drive is case sensitive, but the external hard drive had the default case-insensitive file system.
    To fix, do this:
    Go get yourself an external firewire or usb hard drive at least as big as your internal drive. Plug it in and use Disk Utility.app (under /Applications/Utilities) to Erase it and format it as "Mac OS Extended (Journaled)". The download CarbonCopyCloaner, a free utility that can copy an entire drive. Use CCC to clone your Macintosh HD to the external drive.
    Now that you have a backup drive, go to System Preferences and choose Startup Disk. Pick the external drive as the the startup drive. Reboot and check that your printing works properly now.
    If that fixed your problem, while you are booted from the external drive, use Disk Utility to erase Macintosh HD and format it as "Mac OS Extended (Journaled)" not "Mac OS Extended (Journaled) case-sensitive". Then use CCC to copy everything back. Reboot.

  • Unable to print to file in adobe acrobat 9 pro, windows 7 OS

    ok, so i've been having this problem since 16/1/2012. I download a pdf file from online, open it and attempted to combine multiple slides into 1 slide like below:
    my printer cannot print duplex so i have to combine multiple slides to 1 in order to print that way. anyways, i always select the option of "Adobe PDF" under the "Printer" box. I don't change anything else. I am then prompted to save the file as below:
    so after that i click "Save" and they gave me this warning message.
    in case you cannot see what's written in the dialogue box, here's what it says:
    When you create a PostScript file, you must rely on system fonts and use document fonts.
    Please go to printer properties, "Adobe PDF Settings" page and turn OFF the option "Rely on system fonts only; do not use document fonts."
    I click "Ok" and another message appears:
    I click "OK" and then another message appears:
    So i clicked "OK" again and then nothing happens. After I followed the instructions to rely on system fonts, I tried doing it agian and everything seems ok. Flattening document etc like below:
    and when it has finished, nothing happens. No new pdf window pops up (like what it usually does). So I went to check the folder where I stored the file. This was what i saw:
    it turns out the file I just saved have no Adobe pdf icon appearing next to it. Instead, its document type is merely "File". When I tried opening it with Adobe reader, I got another dialogue box as below:
    The dialogue box's text is as follows:
    Acrobat could not open [file name] because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF.
    I do not know why the file is supposedly corrupted because it works well on other computers and it can be printed as well. Does anyone know how I can solve this problem? It's really urgent and I desperately need to print my PDF files for my lessons and exams (I'm a student). It was uploaded on my school's website and PDF is the only available format. This is the first time it has happened and I am getting really frustrated. And it is not only for this 1 file. Since the 16th, EVERY pdf file i've opened has encountered this problem. Which is why I need to know how to solve this. Thank you in advance.
    Would appreciate it if someone can help answer this question. Admins or otherwise.
    Additional info: Laptop is Toshiba Portege m900. Windows 7 OS.32-bit operating system. Singapore-based.

    Dear user,
    You are getting such output because you have checked ON the setting 'Print to file' in one of your previous prints. For resolving this issue, kindly uncheck option 'Print to file' present in bottom left corner of print dialog and then click on 'Print' (See attached image for reference).
    Hope this will solve your problem.
    Thanks
    sonal

  • Print module - print to file options

    When creating JPEGs using the Export function of the Library module, Lightroom 4 offers you very detailed control over the export options, including automated rules for the folder/filename structure.
    When creating JPEGs using "print to file" in the Print module, the controls seem to be much more limited. Notably, the folder/filename has to be specified manually for each print job.
    Is there a way to keep (or append to) the original filename when exporting from the Print module, short of typing it in by hand for every single image?
    (For context: My print lab requires that submitted files exactly match the print, pixel-for-pixel, for everything to work correctly. If the file doesn't match, their print driver will scale and crop until it does. So, if I use the Library module's Export function and the aspect ratio of the file is different from that of the closest available paper, two edges may get cropped. Or, in other words, I have to pad the image with white bars to fill the paper's aspect ratio if I want it to print the way I want it to. The Print module creates files that are perfect for my purposes. But, since I can't figure out how to get it to keep the filename, the back print data on the paper copies- which I will need 8 years later to find the original when a re-print is ordered- is useless.)

    Thanks Effeegee. At your suggestion, I tried LR/Mogrify + ImageMagick and, with a bit of tweaking, it does exactly what I need (and far more efficiently than LR4 Print).
    For other users' reference, the LR/Mogrify configuration to do this is:
    In Lightroom Library -> Export, LR/Mogrify adds "Post-Process Actions". Turn on "Background Canvas" and "Compress to file size".
    Under the regular "Image Sizing" control, turn on "Resize to Fit: Dimensions" and set the paper size (long side first) and printer resolution. This resizes the image to fit within the specified paper size.
    Under "Mogrify Canvas", set the paper size again (in pixels, long side first), and turn on "Adjust for landscape/portrait". This pads the image with blank borders to exactly fill the specified paper size.
    Note that if the short side is specified first, LR/Mogrify sometimes pads on all sides....
    To minimize additional JPEG artefacts, I suspect that under Lightroom export's "File Settings" the JPEG quality should be 100 (i.e. negligible loss) and the final compression should be done only after all post-process actions, i.e. use LR/Mogrify's "Compress to given file size". (But don't quote me on that as I haven't traced the actual code path.)

  • Open and print multiple files from the Finder all at once.

    I'm trying to research how to do this. In OS9 you used to be able to hi-lite multiple files (Word files for example) and just hit Command+P. This would automatically open all of the files AND print them.
    I can't seem to do this in my OS X. Or can I? I can hi-lite and go to File/Print, but the computer is only opening but not printing.
    Any suggestions??
    iMac   Mac OS X (10.4.8)  

    I don't know how to both "open and print" multiple files in one step. The ⌘O combination of course will open multiple items. The items remain selected so switching back to the "Finder" and dragging multiple icons onto the icon for "/Applications" > "Utilities" > "Printer Setup Utility.app" seems to cause them all to be printed to the default printer.
    Alternatively, a user's "~/Library/Printers" folder contains printer icons -- I'm not sure what they are exactly, but they represent the printers set up for that account. They function pretty much like the pre-OS X "Desktop Printer" icons so dragging and dropping multiple files onto them should cause them to be printed. It may even be possible to create aliases to them on the "Desktop" to recreate "Desktop Printer" functionality. But again, this won't open the files into their applications.

  • Cannot Print PDF File from IE8 Beta 2

    I recently installed Adobe Reader 9 and Internet Explorer 8 Beta 2 under Vista 32-bit. When a PDF file appears under IE8, I cannot print the file. The print command shows only a blank page. If I save the PDF file, open Adobe Reader 9 and open this PDF file, I can print the file correctly. Please advise if you have the same issue and possible fixes?
    Thank you...

    I have a similar problem. I have Adobe Reader 9 and IE8 Beta 2 on Vista Ultimate, and other pdf drivers as well. When I try to print to any pdf driver in IE8 B2 I get "Access Denied" message box, then when I click OK I guest a script error on line 2037, Char 1, unspecified error, code 0, URL: res//ieframe.dll/preview.js. It occurs with all the pdf print drivers I have including ScanSoft PDFCreate, Quicken PDF printer, and DocuCom PDF printer. If I do print preview and then print, there is no response.
    Debugging java scripts is more than I want to get into. Any ideas?

  • How to Print a File in JSFF

    Hi All,
    Anyone tried printing file through printer in JSC2.????????
    Expecting some Suggestions!!!!!!!!!!!!!!!!!!!!!!!!!!
    regards,
    Josh Machine

    If your question is how to call print from a button in the form:
    Go to the jsp page, and add to the print button attribute
    onClick="window.print()"
    <ui:button binding="#{Page1.button1}" id="button1" style="position: absolute; left: 288px; top: 120px" text="Button" onClick="window.print()"/>
    you can also do this by seelcting the button, and in the properties window, under javascript set the onClick property to window.print
    If you are question is how to print a file through the Creator IDE, you can use the File -> Print.
    To access the IDE's general print properties, choose Tools > Options > Advanced radio button, and then choose IDE Configuration > System > Print Settings. Expand the Print Settings node to select an individual editor.
    hope this helps
    Radhika
    http://blogs.sun.com/Radhika

  • Printing all files in a portfolio

    Discovered that, if you select the "List View" layout for a portfolio (running Acrobat 9.1.3 on Snow Leopard), you lose the print dialog box option for printing "All Files".  Under the "Grid" layout, the "All Files" print option is restored.  Pointed this out to tech support, but wanted to save others the headache.

    Sharing a folder does give others access to it, but it does not change the permissions of the files inside.  Other users can probably read everything, but they can't modify files that they do not own unless the owner of those files has changed the permissions to allow it, or other steps have been taken to provide additional access such as the use of an Access Control List (ACL).
    Apple doesn't include a GUI utility for manipulating ACLs, so your choices are to use a third-party utility such as TinkerTool System (not free) or the Terminal application.  The Drop Box folder in your user's Public folder has an ACL entry that gives access to change just about everything on files that are dropped there, so a Terminal example that sets similar permissions for everyone (a particular user group can also be used) would be:
    1.  copy and paste the folowing into the Terminal window (there is a trailing space):
    chmod -R +a "everyone allow list,add_file,search,delete,add_subdirectory,delete_child,chown,file_inherit,directory_inherit"
    2.  drag the desired folder into the Terminal window (this copies the path)
    3.  press return
    Note that ACL entries only work on items that have been created in the folder - not moved there - so you should use option drag to make a new copy in the shared folder.

  • Adobe Reader v 11.0.10 cannot print PDF files

    Hello,
    My Adobe Reader v11.0.10 running on Windows 8 Pro with Media Center cannot print anymore.
    I used to be able to print from Adobe Reader before.
    I still can print to all printers using other applications – Word, Excel, Notepad.
    I can print a test page on any of my printers without any problems.
    I can print PDF files using other PDF viewers (like Foxit reader), but I can’t print from Adobe Reader.
    There is no error message on the screen and there is no any error message in the log files.
    If I uninstall Adobe Reader and re-install it, then the first time I log on I’ll be able to print once.
    But any consecutive attempt to print will fail!
    Any ideas what could be the problem?
    Thank you!

    Hello,
    I go to File --> Print menu.
    As I always do.
    It used to work before.
    I haven't tried "Print as image" option, but I'll try it and post the result!
    I will try also unchecking 'Enable Protected Mode at Startup' option under Edit> Preferences> Security (Enhanced)
    As I mentioned in my previous post I tried re-installing Adobe Reader - but no luck :
    "If I uninstall Adobe Reader and re-install it, then the first time I log on I’ll be able to print once."
    I think that the issue is not the particular file - it has something to do with Adobe Reader itself. Maybe it is corrupted????
    I'll try again tomorrow and I'll post the result!
    Thank you for your reply!

  • Windows Service no longer able to print PDF files using Adobe Reader 11.0.07.79

    We have a Windows Service that watches a folder for PDF files to be deposited.  Once awakened, it executes the Adobe Reader in command line mode to print the PDF files to secure check printers. The Windows Service was working fine with 11.0.06.70 but no longer works with 11.0.07.79.
    There are no event viewer errors or errors returned to our Process.Start() call.  The Windows Service is running under the identify of an administrator account and has explicit full access to the printer.  We have also tried the local computer's Administrator account as well as the default Local Service, but none work.
    Using ProcMon to examine the failure, it showed Adobe Reader making many successful registry and file accesses.  Adobe Reader then creates a new process, another instance of itself to read in the PDF file and print to the printer.  However, ProcMon only shows Adobe Reader accessing AcroRd32.exe, syswow.dll (sp) and ntdll.dll and then the thread and process immediately exits with an exit code of 0 (no file or registry accesses).  So, something is causing the instantiated process to fail immediately.
    After more research and trying many things, we disabled "Enable Protected Mode at Startup".  This enabled things to work again.
    We are concerned that disabling this feature might expose security concerns for our customers.
    We are suspecting that some security concerns were tightened with 11.0.07.79 that has inadvertently caused printing from Windows Services to falsely be identified as security violations.  Can you please investigate and provide a resolution?
    Thank you.
    Craig Keating
    Alliance Enterprises, Inc.
    [email protected]

    Hi,
    Can you please give the following details:
    1) Command (given in command line)used to print PDF files?
    2) Is the issue reproducible with other printers as well?
    3) Is directly printing the PDF from that folder using command line i.e without using windows service works fine or not?
    Thanks,
    Shakti K

  • Problem with printing pdf file created from Illustrator

    Hello,
    In a drawing I created with Illustrator 10.0.3 I covered part of a circle with a white rectangle (to make it disappear). I saved it as pdf. When printing the pdf (under Linux with a HP printer), the covered part reappeared. However the pdf-file is how it should be. Anybody knows what the problem is?

    No, it is not set to overprint. Also, I have to add that the printing results were not consistent. Sometimes it covered and sometimes it did not.

  • Cannot Print PDF Files on Reader 9.4.0!

    I recently updated the drivers on my Brother MFC-420CN printer to the Vista drivers so I could scan multiple pages at once, however, now I can no longer print PDF files!!!!
    I tried to roll-back to the old drivers and it still doesn't work, I can print other types of files so it makes me believe that this is an Adobe Reader issue and not a system issue.
    In addition, I tried the following steps:
    1. Under advanced settings I chose "Print as Image" - did NOT work
    2. I uninstalled Reader and re-installed - did NOT work
    Here is my setup:
    OS: Windows Vista Home Premium Service Pack 1, 32-bit
    Model: HP Pavilion dv2700
    Processor: AMD Turion 64 X2 TL-58 1.90GHz(I am aware this is a 64bit processor with a 32-bit OS)
    Printer: Brother MFC-420CN
    Driver Version: 6.0.6000.16386(This is the previous driver that I rolled back to which used to print PDF files)
    Adobe Reader v9.4.0
    Any advice on how to get this working again would be greatly appreciated, thanks in advance!

    Had you managed to print the same files, or are you talking about files you hadn't attempted to print? Are these PDF files forms that you are trying to fill and print in Reader?

Maybe you are looking for

  • How to get textfield values from a tableRowGroup

    I have textfield in a table. my problem is How to get textfield values from a tablerowgroup1.

  • Word processing in Java

    Hello: I need basic word processing in Java, and there is no time to program JEditorPane. Neither there is any desire to. Does any one know of a class or a bean available to this end. I need 1. Open/Save 2. Font selection 3. Bullets 4. Pic embedding

  • PO not displayed in Confirm Goods / service Centrally

    We are on SRM 5.0 Extended classic scenario. Backend is ECC 6.0. A Purchase order has been created in SRM and transferred to ECC does not appear in "Confirm goods / services centrally" transaction. We noticed that in the Vendor master (Manage busines

  • TFS /VStudio 2013 - How Can I See TestContext Output from Build Definition

    Running On Prem TFS 2013 with Visual Studio 2013 MS Test I think we are using the default Build Templates (TfvcTemplate.12.xaml) I have a seperate "*.Tests" Assembly/Project for running Unit Tests. The main problem I have, is that the tests pass on m

  • Using iPhone in Foreign Country

    If I charge my iPhone in Greece or Israel, do I need only an adapter for the plug or do I have to get a converter or transformer?