Save PDF to AxSHDocVw.AxWebBrowser

In my VB 2003 application, the browser control is AxSHDocVw.AxWebBrowser. The code checks if the incoming file is a pdf file.

If TypeOf WebDisplay.Document is AcroPDFLib.IAcroAXDocShim

If the file is an AcroPDFLib.IAcroAXDocShim then I want to ' Save as ' in a local file. C:\test.PDF

What is the code for this?

I tried to interface CType (WebDisplay.Document, AcroPDFLib.IAcroAXDocShim) .src, but which returns the URL of the web page. I want to save the pdf file.

I also tried to use execCommand.

Dim strArray (3) As String

strArray (0) = "Save as."

                            strArray (1) = 1

strArray (3) = "C:\test.pdf".

CType (WebDisplay.Document, AcroPDFLib.IAcroAXDocShim) .execCommand (strArray)

But I get an error of Marshal, string is too long.

I read Adobe 'Development of Applications using monitor Communication' and "Monitor Communication QAnywhere", don't see anything relevant.

You can not.  The browser control provides all of the features for saving PDF files.  All the methods available for the browser control are listed in the documentation the IAC with the Acrobat SDK kit.

Tags: Acrobat

Similar Questions

  • users cannot save .pdf, .doc files using "Save target as" in google search results. Can someone help me, I couldn't have known that the same works very well on some computers.

    I am the Director of technical support for more than 1000 computers. Recently in some computers (windows based) users cannot save .pdf, .doc files using "Save target as" in google search results. Can someone help me, I couldn't have known that the same works very well on some computers.

    Hi MASPAdministrator,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows XP forum.

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads

  • I think the Adobe Pro XI 11.0.14 update is the reason that I now get a script error when I try to save PDFs for SharePoint, anyone else having this problem?

    Adobe XI Pro has been updated to 11.0.14 last week.  I think the Adobe Pro XI 11.0.14 update is the reason that I now get a script error when I try to save PDFs for SharePoint, anyone else having this problem?  It was working fine before.  I can drag / drop files PDF to other folders to SharePoint, but I can't "save under" SharePoint I get the can't read the script error.  I went to see if I could uninstall the update and it won't let me uninstall it.

    Hi Sierra,

    Bug # 4117305 for the number of script with SharePoint error has been fixed in our next quarterly update.

    Kind regards
    Rave

  • CAN´t, use the function "save PDF-portfolio under Web site" it is grayed out on the file menu -

    I can´t use the function "save PDF-portfolio as a site" in the file menu - it is greyed out.

    I use Windows 10 House and Acrobat DC

    Not all portfolios can be saved as a site.

    It is possible with http://blogs.adobe.com/pdfdevjunkie/wp-content/themes/Adobe_PDFDevJunkie/download/Billboar dTemplate.pdf

  • Cannot save PDF in Microsoft Edge

    Since the installation of Windows 10 I'm not able to save PDF files from my browser, Microsoft Edge.  Save the button is grayed out.

    Hey cabsagent,

    Once you open the PDF in the edge browser, you need and do a right click on it then choose register under in the context menu to save the file.

    There is no such 'Save' icon as edge browser uses its own Viewer to open PDF files.

    Hope that helps.

    Let me know.

    Kind regards

    Ana Maria

  • Cannot save PDF documents in local

    Unable to save PDFs locally on Adobe Reader X 10.1.11. The "save under" & 'Attach to email' options are grayed out. There is no security on any of the documents.

    The application has been uninstalled. Recreated local profile.

    I can't update, this must be the version.

    Windows 7 64-bit.

    Hi matt65019298,

    Please uninstall Adobe Reader 10 using this Download Adobe Reader and Acrobat tool - Adobe Labscleanup tool, reboot & then install the last DC of Adobe Acrobat Reader or Adobe Reader 11 using this link Adobe - Adobe Acrobat Reader DC Distribution.

    Let me know if the problem persists.

    Kind regards

    Nicos

  • I've just upgraded to Adobe reader DC and now I can't save PDFs. really really frustrated. Says that it cannot connect to a DDE server.

    I've just upgraded to Adobe reader DC and now I can't save PDFs. really really frustrated. Says that it cannot connect to a DDE server.

    In previous versions of reader, a small change in the Windows registry fixed this problem.  I don't know if this still works for CD player, but it is interesting to try: download, unzip, then run the registry script from https://files.acrobat.com/a/preview/aa605eb3-5973-4cab-85d0-dea22fb92680

    It will make the following change to the registry:

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application]

    @="AcroViewR10"

  • Work around the window "save PDF file under ' registration

    In Adobe Acrobat Professional 10, is there a way to bypass the window "save PDF file under ' and have just the file save as the same file name or a different file name?  Then once I select 'Adobe PDF' printer and click Print, I would like that the file just to save in the same directory, in that it is.  I don't care if it overwrites the existing file or creates a new file.

    The Ride: I'm using the portfolio feature, then using the configuration of the printer for each file to reduce by 20%.  Using the print to pdf feature, I'm resave files reduced.  2000 files in the portfolio, and I don't want to see this Save As pop-up 2000 times.

    In the printer preferences, cut request file name.

  • Is it possible to save PDF files, so when the user opens the file it opens a pre determined size?

    Is it possible to save PDF, so when the user opens the file it opens a pre determined size – say 100%?

    I cannot for the life of me figure it out - or is - that it is dependent on parameters end users?

    Thanks a lot for your help!

    It depends on.

    If you have the drive, then it only recognizes your user preferences.

    If you have Acrobat, you can go to file > properties > Page display > view original and set it to anything you want.

  • Save PDF files on ipad

    Is it possible to do? Thank you

    If, for example, you receive a PDF attachment in an email, you can save the attachment in iBooks.

    http://help.Apple.com/iPad/9/#/iPadca8ec5ef

  • OfficeJet Pro 8500 a A910a - cannot save pdf in multiple files via touch screen

    Hello world

    My problem is that I can't save my scans in multiple files (.pdf) If you use the "scan to file function" via the touch screen on my Officejet Pro 8500 A910a a shortcut. It works when scaning manually from the computer, but I need to work from the printer/scanner.

    The only way that the scan shortcut saves each page separately (works the way I need) is when you save as a .jpg file, but this isn't the exit, I need. I search for an .xml file change the shortcuts manually, but have not found one. Since my other printer 8500 A909a can analyze each page in a single .pdf file, it must be a question of settings that the A910a does not offer this parameter directly.

    I appreciate any assistance with this problem.

    OS: Windows 7 Home Premium 64-bit

    Driver: OJ8500_A910_1315

    Firmware: OJP8500_A910a_1231A

    Hi RnRMusicMan,

    the solution you are suggesting is what I have now and the reason why I even started this thread. Analysis each page separately from the touch screen is a pain in the a * and analysis of PC via a scan profile is not the way to go for me either. Thank you in any case, it seems like it is actually a problem in the software and I have to be careful next time, choose a new printer.

    RnRMusicMan wrote:

    Hi Koumack,

    Welcome to the HP Forums!

    I see that you are trying to save your scans in multiple files (.pdf) using the analysis of the function of file.

    That's what I could find in my resources:

    How to perform a scan: from the control panel

    Breast of HP Scan, select scan on a daily basis, and then click Advanced settings, select the file tab and check create a separate file for each scanned page. Click OK. It should work from the software.

    Otherwise, even if it may be a longer process, as a work around the printer, you can scan a page using the scanner glass.

    Hope this helps and have a nice day.

  • Save PDF on emulator

    Hello

    I want to just save a PDF file on the filesystem sumlator because I want to perform an operation on it.

    but he is unable to save him.

    I want to create a PDF Viewer application. This is why I need a PDF of the emulator file system.

    How can I do?

    See this article.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800792/801083/How_To _...

  • HOWTO save PDF generated (using BEEP) directly in the custom as BLOB table?

    Hello

    I'm working on APEX on the Oracle DB 12 c version 5.0.1 (Oracle database, 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit)

    We have an application which was initially founded in APEX 4.1, but migrated to 5 APEX.

    Now, we want to add features.

    In a report from the region (classic report), one of the columns is an image of the print icon that on click starts a JS function.

    Basically, this generates a PDF using BI Publisher in the background.

    Query of the region:

    Select ' < a href = "#" onclick = "javascript:f_PrintReport('||)." dcl.ID |') ; "> < img src =" "#IMAGE_PREFIX #print02.gif ' alt = 'Print' > < / a > ' Print"

    of my_custom_table;

    The page level (header HTML) JS

    < script language = "JavaScript" type = "text/javascript" >

    <!--

    function f_PrintReport (declaratie_id)

    {

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is SET_REPORT_PARAMETER', $v ('pFlowStepId'));

    get.addParam('x01',declaratie_id);

    gReturn = get.get ();

    get = null;

    check the dest to run the correct report

    Run the report

    document. Location.href = ' f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = VAT STATEMENT ';

    }

    ->

    < /script >

    It's using queries report and presentations in the shared components. It all works well.

    But after generation, we now want to save the PDF generated as a BLOB in a custom table.

    I am looking how I can "capture" this output to be stored directly in the DB.

    Some advice there?

    Thank you!

    Roeland

    Hello

    I use different how to cope:

    I read the report of APEX_UTIL. GET_PRINT_DOCUMENT to the variable of BLOB.

    After that I just create target resp file.

    I use this just after APEX_UTIL. GET_PRINT_DOCUMENT that opens the browser download link.

    part of the code example:

    In your case use just insert in the table instead of the file from the Bank on the file system.

        v_filename_xls := v_filename||'.xls';
        -- crate the PDF file to external dir
        l_document := APEX_UTIL.GET_PRINT_DOCUMENT (
          p_application_id      => :APP_ID,
          p_report_query_name   => 'report_ins',
          p_report_layout_name  => 'report_ins',
          p_report_layout_type  => 'rtf',
          p_document_format     => 'xls');
        --
        l_blob_len := DBMS_LOB.getlength(l_document);
        --
        if not utl_file.is_open(f_data_init) then
          dbg_pk.trc(2,'create file for write.');
          f_data_init := utl_file.fopen(v_if_dir, v_filename_xls, 'W', 32767);
        end if;
        --
        -- Read chunks of the BLOB and write them to the file
        -- until complete.
        WHILE l_pos < l_blob_len LOOP
          DBMS_LOB.read(l_document, l_amount, l_pos, l_buffer);
          UTL_FILE.put_raw(f_data_init, l_buffer, TRUE);
          l_pos := l_pos + l_amount;
        END LOOP;
        -- Close the file.
        UTL_FILE.fclose(f_data_init);
    

    concerning

    J

  • Cannot save PDF files

    I just noticed this morning that I can save is no longer a PDF of Acrobat DC file. Period. When I try, I get a popup with the small icon "loading" square box and it blinks like crazy. Then the CPU fan comes into play. He never really let me save it. Red alert!PDF-Error.png

    Found the answer here: CD player crashes instead of the economy

    It is apparent to when Acrobat tries to show online content when recording.

  • Find the layer with the name "Name1" a name change for 'name2' and then save PDF

    Hi there together, we have the following problem:

    We need a Javascript script to rename all the layers named 'name1' to 'name2' and then save the PDF file.

    Any help would be greatly appreciated.

    Thank you very much

    Patrick

    This code will rename the layer:

    var ocgArray = this.getOCGs();
    for (var i=0; i
    

    Save the file afterwards is more complicated. You can use the Save command sub in a context of trust to do it silently, or you can call the dialog box save as, and let the user manually, by using the command app.execMenuItem ("SaveAs").

Maybe you are looking for

  • DesignJet 5500: DesignJet 5500 error 5015

    I have a 5500 DesignJet.  I changed the ink, cartridges and the dye prinheads 81 to 83 UV tubes. I get error printhead code 5015 (only the black print head) which is a print head "internal power failure" or "Printhead Cleaner is not correct type" acc

  • Upgrade memory of Satellite A100

    Hi allI have a satellite A100-583, which currently has 1 GB of ram and want to know which is the bigger it can be upgraded to and it is worth it, also need to be replaced with 533ddr2 or can it be replaced by 667 and who is a better upgrade?Can you a

  • I just got a phone call (no number came as international) to say that Microsoft

    I just got a phone call (no number came came as international) claiming to be from Microsoft and Muicrosoft are aware that my PC has programs that can cause my PC unwanted crash. They then asked me to turn on my pc while they could repair. This looks

  • Cannot open Windows XP Media Center for some videos by e-mail sent to me.

    On some videos by e-mail, I can't open and get the error message "error C00D11C6 - no other information is available about this error?  It is so, like, we have identified your mistake, but you're stuck forever - we are not say you something more abou

  • How to disable the Welcome screen?

    The Welcome Center screen always comes on my computer whenever I start and I would like that it can't.  I clicked on the lower left corner to ask him not to, but it still doesn't work.  Would you be kind enough to help me with this issue?