fhanna Posted March 23, 2007 Share Posted March 23, 2007 Currently I create PDF files by bringing up the Print dialog box, select Adobe PDF printer, then provide the file name and process. Simplified code: Send("^p") ; bring up Print dialog box Send("a") ; selects add printer Send("a") ; second select to get Adobe PDF Send("{ENTER}") ; bring up Adobe PDF dialgog box provide file name and process Is there a direct/simpler way to bring up the Adobe PDF Save As dialog box via code or .dll This works fine but would like to cut down the steps. Any help is appreciated BTW: I have tried the FileSaveDialog command. Link to comment Share on other sites More sharing options...
BillLuvsU Posted March 23, 2007 Share Posted March 23, 2007 If this is just a program for yourself you may be able to change/create a hotkey for it. Than again I don't know what program your using so I have no idea how to help you. (hint hint) [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
fhanna Posted March 23, 2007 Author Share Posted March 23, 2007 If this is just a program for yourself you may be able to change/create a hotkey for it. Than again I don't know what program your using so I have no idea how to help you. (hint hint)The application monitors multiple mailboxes a day. Upon receipt of a html formatted email the email is printed and saved as a PDF file. Then the email is scanned for URLs and each URL is launched and this information is printed and saved as a PDF file. The process is automated and I provided simple code as an example. All is unattended, PDF file names are generated from email subject lines with appended info. Bottome line. Example is simplified, between the send keys are routines to wait for Windows activation for Print/PDF Save As diallog boxes. Just want to have an automated PDF saving process that is a little more compact.Thanks for the response. michael2t 1 Link to comment Share on other sites More sharing options...
ptrex Posted March 24, 2007 Share Posted March 24, 2007 @fhanna Mayby the "PDFCreator COM object can give you a hand ? see my signature. regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
michael2t Posted May 2, 2017 Share Posted May 2, 2017 Hello All, I am running a program called test.exe and do not understand how to provide file name and process ...to the example in the First post Could anyone please post a few line example .. thanks all Michael T. Link to comment Share on other sites More sharing options...
Subz Posted May 2, 2017 Share Posted May 2, 2017 I can only assume since this post is several years old but they're opening Outlook, opening an email and then using the send keys. However a lot will depend on what software are you using to create the PDF? If Adobe Acrobat, what version of Adobe Acrobat? What documents are you hoping to save as PDF? If Office documents, i.e. Outlook, Word etc... what version of Office do you have as later versions of Office have saving as PDF included? Link to comment Share on other sites More sharing options...
michael2t Posted May 2, 2017 Share Posted May 2, 2017 Hello I am updating a foxpro program from pdf.ocx (windows XP) When using the Acrobat PDF Writer you would use the pdf.ocx to pass the complete file name including path to out to the pdf ocx and then just print to that printer ... and the file is saved ... On Windows 7 and Up PDf.ocx is no longer supported ... But, Adobe PDF creator Printer driver does the same thing as Acrobat PDFWriter printer driver did ...but has no pdf.ocx I am Trying to write a simple autoit program I can Pass the File name to so When the foxpro program can printer to the NEW Adobe PDF creator Printer driver with the filename and the correct path... Michael T. Link to comment Share on other sites More sharing options...
Subz Posted May 2, 2017 Share Posted May 2, 2017 You could use an InputBox or create a Gui with GuiCtrlCreateInput for the filename you'll then need the command line for what ever version of FoxPro you have to open that input. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now