Print .pdfs Programmatically
Just started a new porject that will involve automating the print of .pdf files
I've just tried using this:
NET USE LPT3: "\boxprintername" TYPE "\T095118.pdf" > LPT3: NET USE LPT3: /DELETE
to print and it comes out with loads of gobbledgook.
How can you (in vb or vb.net) do this? i've done a bit of googling and there seems to be a lot of components out there that cost loads of money. are there any free/open source ones?
Any help or pointers ill be much appreciated.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Print PDFs From Directory($$)
I need a program that will print all the pdfs in a certain directory in 30 minute intervals with an option for copies.
Thus if i have 25 pdfs in a folder and I want 3 copies of each within 30 minute intervals it will print 75 pdfs.
I am willing to pay payal for this simple program after completion. Mods welcome to join.
I can make it myself but I dont have VB6 anymore and i work 7 days a week.
Private messages welcome.
Print All PDFs In A Directory
I have a VB program called from a Unix program that prints all PDFs in a passed directory. It works fine on my PC, But I have to have the VB program available to everyone in the company. I created an exe on the network and the Unix program calls it okay. The problem is that the path to Adobe reader can not be found. I found out I can not install Adobe Acrobat Standard on a network drive and was hoping I could use adobe reader instead.... everyone has it installed.
I will attach the current code.... with commented out attempts.
Programmatically Print Reports To PDF..
Hello-
I have a MS Access app that has a form with a list of information. There is a preview button on it that calls VB code which appears to generate a Report on the fly. What I am looking for help with is to then take this report and print it to a PDF.
I have run through the process manually and it works using the exact steps above. I then click Print... and select Adobe PDF Writer from the Printer dialog and it creates the document in the location and with the name that I have given it.
This form has 25600 records associated with it so as you can imagine, I would like to automate this process and batch the name and location using a specific naming convention including the ID.
Any suggestions on how to go about this would be greatly appreciated!!!!!!!!!!!!!!!!!!!
Thanks!!!!!!!
Programmatically Print Outlook 2003 Msg
Good day, I would like to ask on how to programmatically automate printing of ALL KINDS of MS Outlook 2003 msg files in visual basic 6. The procdure will just have a parameter of the path of that msg file. Any help would be gladly appreciated.
Changing Print Layout Programmatically
Hi all,
From asp code, i'm giving the print option through a button. But it is by default - portrait. I want to set that as landscape programmatically. Is it possible?
Pdfs
hi all,
Can any one give me information about VB.Net and ASP.Net Pdfs. I am unable to find good pdfs in Net for free. If any one can give me information that will be helpful to many people
thanks in advance
bye
View PDFs
Does anyone know of a ActiveX plug-in that can view PDFs in a form without having Acrobat installed?
Printing PDFs
I am trying to print a folder full of pdfs, without opening each one individually.
I can print individual text files using the shell execute, ut when i try this with pdfs it attempts to open them and then sends back an error message.
Can anyone suggest a better approach
Viewing PDFs In VB6
How can I view a PDF in VB6 BUT turn off (.enable=false ??) the save button?
At the moment I'm using a webbrowser control to view the pdfs.
Creating Pdfs
Hi!
i'm currently looking for tools to an create/modify PDF Files from an asp intranet site (probably ~100 Clients, IE).
(PDF tool running on webserver, creating pdfs from .doc, .txt, .htm, .tif files, adding a file to an already existing file)
Any tool you can recommend?
Thanks a lot!
Nina
Creating PDFs With VB
I am trying to find out how to create a PDF through VB code. I know how to take an access report and make it into a PDF but I would like to create PDFs without having a standard report already saved. Is this possible??
Creating Pdfs With Vb6
hi,
does anybody know how i can create pdfs with vb6?
the best solution would be with an API?
but i would not mind installing a PDF-printer?
but with printout-command i can print the form but not a document with a certain content.
does anybody has an idea?
cu
w2k-user
Printing PDFs
dear all
i am writing VB codesin excel and want to print 70 reports to a PDFprinter but problem is evry time it print it asks for the name of the file, cant we give the name of the file in our code.
regards
AHMED
Exporting To PDFs
Hi
I need to build a test generator for our school that exports tests into PDF files. I'm thinking of storing the data in an access database and then exporting and formatting the test/exam in a PDF file.
Can anyone tell me if it is possible to export to PDF without having the full version of Acrobat installed locally? Is there a way to put a plugin or such into the code?
Cheers
Batty
Reading PDFs...need An API?
I did a search, but only found threads on writing PDFs. Please tell me VB has the ability to read PDFs into an image file for output. Or read so I can overlay text onto it and send it to the printer.
Reason: Government forms change here quite frequently, and manipulation in photoshop is just killing me.
Acrobat 5.0 - Merge PDFs
I do not know where to start, can anyone help?
Adobe Acrobat 5.0
Visual Basic 6 SP5
I have a folder with a bunch of PDFs, I would like to take the 1st page of each document and merge them into one PDF in any order. I cant spend any money.
Anyone that can point me in the right direction will be rewarded with a small handfull of beautiful virgins with intentions only to server you. That or one great big thank you.
John
ShellExecute Won't Open PDFs
I've written some code for opening a file when it's double-clicked. It works fine on my machine for every type of file, but on one machine in the office it refuses to open PDF files. We've installed Acrobat 7 afresh, and it will open PDF files from Explorer when you double-click them, and all other types of files open when they are double-clicked in my app, except for PDFs.
Is there any reason why PDFs won't open in VB just on one machine?
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
Convert TIFs To PDFs?
Anybody tried to convert TIFs to PDFs in a batch mode? I used Adobe Acrobe 5.0 library in VB6.0 and could convert from PDFs to TIFs. Now I need to reverse the conversion. I could not locate any help on TIFs to PDFs. Any one can provide hints?
Need Opinions - Storing Pdfs In SQL Server
I know how to save and retrieve documents(Excel, Word, PowerPoint) from SQL Server through VB but we are having this debate in the IT group on whether this is best practice. We had a request for a document mgmt system. Do we store them in SQL Server or ina file structure with doc type, and full UNC pathname pointing to the document. If they are stored in SQL then they are always backed up, they can't accidently be deleted or moved by the end user. If they are in a file strucure then they can accidently be deleted, moved which would break the path stored in SQL. It just seems that they would be more secure in SQL then in a file structure. The performance arguement comes up but it is only a contract and some amendments per an account (250 accounts total) that I don't think would performance would be affected. Disk space may be an issue on our SQL Server but that can be easily resolved.
Any input, pros or cons, would be appreciated.
Thanks.
Steve
EXCEL VBA - Extracting Text From PDFs - GetObject
Quick Version of Question :
Does anyone have any recommendations on how to search for keywords in a PDF document using VBA?
Long Winded Version of Question :
I've just read most of the posts for "acrobat", "pdf object", and "adobe". So my brain is a little numb right now and I'm likely missing something obvious.
What I would like to do is 'rank' some PDF files based on keywords found within the document. So my plan is to open each document (programmatically, not for display), count how many instances there are of keywords found, then close the document.
Since I am not creating a PDF document, I think I should be fine with my version of Acrobat Reader 6.0.
My current approach is to use the pdf.ocx object (which I know very little about) but I assume it has some methods for text search or SaveAs Text.
This is my first attempt at playing with the GetObject Command and it is not going very well. I found the following code on the forum and modified it with the appropriate paths...
Code:
Sub Quick()
Dim oTemp As Object
Dim sPath As String
sPath = Application.GetOpenFilename
Set oTemp = GetObject("C:Program FilesAdobeAcrobat 6.0ReaderActiveXpdf.ocx")
If oTemp Is Nothing Then Set obPDF = CreateObject("C:Program FilesAdobeAcrobat 6.0ReaderActiveXpdf.ocx")
' Now play with oTemp until it is understood.
End Sub
... When I run this, I get the following error on the GetObject command.
Quote:
File name or class name not found during Automation operation
So my verbose questions for the forum is
Do I require an entry in my references?
Does this appear to be the right approach?
Thanks in advance for any advise that you can give.
Dynamically Create PDFs From MS Access Report
Hey all,
I want to print an MS Access report to a PDF file, the problem is that I've got about 600 reports to print. I'd prefer to not have to set a save location and filename for each file, but rather have the PDFs automatically saved in the right location with the right filename.
Anyone know how I could go about doing this?
Thanks,
Ben
Controlling PDFs Viewed With Acrobat Reader In The Webbrowser Object
One way of viewing PDFs in VB6 is to use the standard acrobat reader to view them in the webbrowser object (i.e. using pdf.ocx indirectly).
My question is - if one does that by say
webbrowser.navigate "http://www.vbworld.com/bozo.pdf"
how can one send commands to the adobe plug-in to do things like do thing like hiding the toobar etc.
Here is an example of it being done with scripting http://www.borncity.com/WSHBazaar/News5.htm but I'm not familiar with that so I don't know how to convert it to VB6.
Get The Name Of Control And Use It Programmatically
Hi,
Im in the process of writing a module that logs what the user is doing within my app. I have a string containing the type of info (error, update, delete etc), date, time, form name etc that the user is currently using, but I'd like to report the control that the user has clicked as well. For example, if I click a command button called 'cmdSave' I want to be able to stick the name of this control in a var. and write it to a logfile, so that the output in the log file shows a description of what the user has been doing.
It's a but like Windows EventLog, but this will report more often. It's a way for me to debug my app when its used in a live environment.
At the moment I have all the code working - it appends to a text file and records everything else I need, I just need the control name. I get the Form name by using 'Me.name' which is great. Anything I can use along those lines?
Cheers fellas
Display A Tab Programmatically
hi,
i'm using the sstab and weant to select a tab programmically. there soesn't seem to be a property available ? does any one know if it's possible. i can do it with the old style tab.
thanks.
Programmatically Create Pdf From Fdf
I am trying to save a pdf file using existing pdf template and my dynamically created fdf (form file).
The problem is I could show the merged pdf document to the users. But unable to save it programmatically.
Can any DLL or and commercial tool can do this simple job (Programmatically without opening the pdf file)?
Thanx
Writing To Cd Programmatically
i'm just starting to write an app that helps a company keep an archive of all its images (there are hundreds/thousands).
The method they have chosen to archive the images is by burning them to cd.
My question is this. Is it possible to burn files to a cd programmatically?
basically i would like the user to be able to select from a list of files, click a button and then all those files would be burnt to a cd.
if i can't work out a way to do this i will have to use the workaround of placing all the selected files into a folder and then the user would have to manually use another program to burn that folder to cd. this would be tolerable but it would be so much cooler if i could do it programmatically myself.
Any ideas or pointers would be very much appreciated.
Creating An Dsn Through Vb Programmatically
Respected sirs,
I want to create a key {to create an DSN for ODBC) in the windows 98 registry using VB6.0 programmatically.
After getting tips from this site I wrote the code as follows
Private Sub Command1_Click()
SaveSetting "HKEY_CURRENT_USERSoftwareODBCODBC.INI", "kar", "BufferSize", "65535"
MsgBox "done"
End Sub
when run the above code creates the above key but not in the path as i have specified above.
It creates the key in
HKEY_CURRENT_USERSoftwareVB and VBAProgram SettingsHKEY_CURRENT_USERSoftwareODBCODBC.INIk ar
which is the default path
but I want the key to be in the path
HKEY_CURRENT_USERSoftwareODBCODBC.INIkar
Is there any way to change the default path .
If yes please send me the code.
thanking you
and waiting for a code
J.Anandarajeshwaran
Binary Technologies
Madurai.
India
Set ODBC Programmatically
Hi guys.
Is there any way to set up ODBC programmatically?
I have searched the MSDN, and there is no help on that.
Thanks.
Woody.
Can I Programmatically Set Up A Web Server?
hi all
i'm primarily a ASP web developer, so i'm not sure if i can do this or not.
i want to allow client's on my site to run a local version of the site off
their laptop. i want to give the user an option on the site that grabs all
the ASP pages, extracts just their records for MS SQL and exports to MS
Access, then packs into a zip file for download. no problem with any of the
steps so far. what should happend next is the user runs my app which:
a. checks to see if PWS is installed on the machine and if so, is there a
domain set up to point to my pages. if not, install PWS and add the domain.
b. copy my files to "c:local_web_site"
c. adds a favourites pointing to the PWS server in IE
d. starts PWS, opens IE and goes to the directory.
is this possible? the big question is the business of sniffing for a PWS,
installing if necessary, and adding the domain info.
tks
Programmatically Connect To SQL SVR With .Net
I've just begun the mission impossible.. upgrade from vb6 to .net.. Very simply, I am trying to connect to a SQL 2000 server , to read a specific table on form load. However, the samples that I've come across dont work when I try them. This is due to a variety of reasons.
However, if there is anyone out there kind enough to help, I'd be eternally grateful!
Server name = Hqsql03
Table name = clientdata1
Trusted connection = yes
Help....Can I Programmatically Compile .exe In Vb 6.0??
Friends...i have a problem...i need your help..
I'm developing a web application which allow users to download my vb application. And the problem is how can i compile .exe in vb 6.0 dynamically..So every user who download my application will get different content in the application. The application is same, but i want to make the content randomly for every user....
For example... In an application, i have a textbox with a message in it...
but i want every user will get different message randomly...
But what i mean with random is not randomly generate the message...but i want it randomly get the text from a .mdb file...and compile to .exe..And if it's possible...When user download the application,they will not get the .mdb file..
the message become the part of the application....
Can i programmatically compile .exe with VB?
Or any suggestion from u...to meet my application requirement?
Thanks for ur help
Programmatically Set DAO Preferences
Hi, everyone:
Do you know if there is a way to PROGRAMMATICALLY set (check)the DAO 3.5 (or other version of it) preferences? I know I have to go to Tools -> Preferences, and find it there. But I don't really like the users of my applications to go through these additional steps manually, and I am using DAO in it.
Any help would be much appreciated.
Eugene.
How Do I (programmatically) Tell The End Of A Page In A Pdf Doc.
I got this code from “Iouri Boutchkine”. The code works if I hard- code
The for – loop (part of the Sub below
' changed this to 100
' For i = 0 To -1
For i = 0 To 325
DoEvents
pdfData = pdfData & pageSelect.GetText(i)
Next I
To 325; and that give me only about 85% of a page.
Is there a way around doing guess work?
' pass in what page number of a pdf staement you want to process
Private Sub MygetPDFTextFromPage(pagenumber As Integer)
'create pdf page object, with a specified page
Set myPDFPage = myPDF.AcquirePage(pagenumber)
'create a hilite object, this hilite object is what we will use to extract
'the text, if you can hilite text then you can pull it out of the pdf file.
Set myPageHilite = CreateObject("acroexch.hilitelist")
'returns true/false, we are setting the parameters of the hilite object,
'we are telling the hilite object that when you are called hilite the
'entire page (0-9000)
hiliteResult = myPageHilite.Add(0, 9000)
'we are now going to hilite the page specified
Set pageSelect = myPDFPage.CreatePageHilite(myPageHilite)
'when pdf hilites it breaks up the page into little pieces so when we try
'to extract that data from the hilite we ger it in little chuncks so have to loop
'the data togther and append it together.
'we can also use the same string (pdfData to append all the pages together)
Dim i As Integer
' changed this to 100
' For i = 0 To -1
For i = 0 To 325
DoEvents
pdfData = pdfData & pageSelect.GetText(i)
Next i
'clean up
Set myPDFPage = Nothing
Set myPageHilite = Nothing
Set pageSelect = Nothing
End Sub
How Can Make DSN Programmatically.
Can the Gurus help me by telling how can I make a DSN programmatically in VB. Iwish that when the user runs my exe I could detect if my required DSN is there ,i f not I go and make it. I don't wish to use the Provider as it was giving me error with MS Access.
*******************
Online copy of my Resume: http://www.geocities.com/debuchakrabarty/dcresume.html.
CDAC-Alumni website at http://www.geocities.com/cdac-indore.
My site for SCJP aspirants & Java-admirers: http://www.geocities.com/wahjava
My writings at http://www.geocities.com/debuchakra...dcarticles.html
Run Cmd File Programmatically
Hello, can anybody tell me how can i run a cmd file programmatically. Actually what i need to do is to create a new database (using sql server) on the request of a user. And by default this database should contain a set of stored procedures and tables. tell if there is any alternative.
How To Schedule An NT - AT Job Programmatically
Pretty much the subject says it all. I need to schedule an AT job to run. I could build a bat file on the fly but I'm thinking there has to be a more graceful way than that. Thanks in advance!
Using VB.Timer Programmatically (again)
Sorry for the repeat thread, but I didn't exactly get an answer on my first post.
Anyone have any ideas on how to use VB.Timer without having to use a form? I can create a reference to one (Dim WithEvents tmr_MyTimer as VB.Timer), but all this does is create an empty variable. Any ideas out there?
Thanks in advance.
Dwight
Setting NET DIR (BDE) Programmatically
I need help with the following issue:
I need to set the NET DIR in the PARADOX section of the BDE Administrator programmatically.
This is needed because my program connects to multiple databases (not at once) and they are each on another system. having those systems use all the same lockfile was not an option.
Can someone help me out here please ?!
Greetings
Law
Programmatically Registering Com+
Does anyone have any experience on how to register/unregister Com+ programmatically using VB 6? I have a scenario where the application has to check if the component exists then it has to delete it and register the new one . The OS is Windows XP.
Any help would be appreciated.
Thanks
A
Split An Image Programmatically
Hello Friends,
I am developing a game for Windows Pockt PC 2002, and there I need to break an image(*.jpeg) programmatically into two or more equal parts.
I need an urgent solution for this.
Thanks.
Programmatically Resizing A Form
I want to programmatically resize a form, or more precisely, have it get about 200px wider when the user clicks a button (and after some other stuff has been done).
I can do this REAL easy in VB.Net, yet it seems nigh on impossible in good old VB6?
Anyone?
If it's buckets of code it isn't wort doing, but theres gotta be a simple way? Surely.
|