|
Nope. I haven't had to do anything with PDF's.
|
|
|
|
|
Actually I didn't need anything 'third party' All you have to do is:
Dim acroApp As New Acrobat.Acroapp
acroApp.Show
Dim acroDoc As New AcroAVDoc
acroDoc.Open "C:\filename.pdf", ""
thanks anyway though...finding freeware controls to open pdf sure was a pain, I'm glad "this" works!
|
|
|
|
|
When that works, why not simply use Process.Start(myPdfDocument) ? that works
just like double-clicking myPdfDocument in Windows Explorer.
The advantage is you now depend on the existence of a file association (for PDF)
instead of on a particular PDF reader.
|
|
|
|
|
reegan41 wrote: Actually I didn't need anything 'third party' All you have to do is:
Actually, this IS third party. Acrobat is not installed with Visual Basic. What you're using is the COM server that's installed with Adobe Acrobat Reader. Don't try and distribute your app to other machines without verifying that the same version of Acrobat Reader your machine has is installed on other machines that your app will run on.
|
|
|
|
|
I've used a Glyph & Cog product to work with PDFs. I used the XpdfPrint, which doesn't display PDFs, just prints them, but they have some viewer controls and they were very helpful when I called for advice and questions. The price was pretty reasonable too:
http://www.glyphandcog.com[^]
Also, I Adobe has an SDK...I couldn't get it to do what I wanted with printing, but perhaps you would be able to use it for viewing. You should be able to just google it or search their site. The up side of this one is that it is free, the downside is that the user will have to have adobe and you will have to code for each versin of adobe.
Another product I've used is the Studio Enterprise .Net toolset from Component One. They are a bit more pricey, and you have to buy the whole package even if you want just one component, but I had a lot of good help when I called with questions on this product as well:
http://www.componentone.com/StudioEnterprise/NETToolset.aspx[^]
Hope this helps.
|
|
|
|
|
Hello
I have tried different things for this, but it is not working yet. I have a web page project under construction. When button1 is clicked should pict1.jpg be shown in the imagebox1 and when button2 is clicked should pict2.jpg be shown in the imagebox1. Pictures are located at server. I can not get this working.
|
|
|
|
|
This question belongs in the ASP.NET forum, not the VB.NET forum.
This chould be done in a single line of code for each. If they're in the same directory as your .aspx page, then it should be something like this:
Image1.ImageUrl = "~\picture.jpg"
The "~" means get the image from the same directory that the page came from.
|
|
|
|
|
Is there a free outlook type calendar object out there that I can include into my app? I've looked all over the internet and found some that cost a lot of money....of which I am lacking.
Or can someone point me in the direction on how the screen is created for an outlook style calendar....is it created on the fly...a bitmap image with textboxx overlay....etc?
Thanks
Tom Wright
tawright915@gmail.com
|
|
|
|
|
Okay...I guess (according to Christan G.)that I either need to buy one or make my own.....so how would I make my own...not really sure how they are creating theirs...any suggestions
Tom Wright
tawright915@gmail.com
|
|
|
|
|
|
Aren't these for the bar? I'm looking for the Calendar.
Tom Wright
tawright915@gmail.com
|
|
|
|
|
I thought one of the links above did that don't know wich one
and I think I have some code for it at home I'll take a look when I get home (in about 1 hour)
|
|
|
|
|
Man that would be awesome. I'll check out the links.
Thanks
Tom Wright
tawright915@gmail.com
|
|
|
|
|
Can Winspool.drv be used to permanently set printer properties?
Or do you know of any third party libs that I can use?
|
|
|
|
|
You can use WinSpool.drv to do this. The documentation is here[^]. The only requirement is you must have a complete understanding of the Windows Printing subsystem in order to use it.
|
|
|
|
|
I was looking into this as a way to automatically setup the Microsoft Office Document Imaging printer. Like selecting .tif's and the default print folder.
I've run into several issues like this where you can just about reach it - but you gotta have a lot of time.
Thanks for the link anyway!
|
|
|
|
|
I am writing an application in vb.net 2005 to read, update, and insert data to paradox database file(.db). When I try to connect I get this error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Here is my code:
Dim connectionstring As String = "Driver={Microsoft Paradox Driver(*.db )};DriverID=538;Fil=Paradox 5.X;DefaultDir=C:\Data Feeds\;Dbq=C:\Data Feeds\;CollatingSequence=ASCII"<br />
<br />
Dim querystring As String = "SELECT * FROM PriceBooks.DB"<br />
Dim tableName As String = "PriceBooks.DB"<br />
<br />
Dim dataSet As DataSet = New DataSet<br />
<br />
Using connection As New Odbc.OdbcConnection(connectionstring)<br />
Dim adapter As New OdbcDataAdapter()<br />
adapter.SelectCommand = New OdbcCommand(querystring, connection)<br />
Dim builder As OdbcCommandBuilder = New OdbcCommandBuilder(adapter)<br />
<br />
<br />
connection.Open()<br />
adapter.Fill(dataSet, tableName)<br />
<br />
adapter.Update(dataSet, tableName)<br />
Me.DataGridView1.DataSource = dataSet<br />
Me.DataGridView1.DataMember = "PriceBooks.DB"<br />
End Using
Any ideas on what the problem might be?
jds1207
|
|
|
|
|
You might want to tell us on which line the error occurs and you also want to get rid of the ".db" after Pricebooks:
Dim querystring As String = "SELECT * FROM Pricebooks"
|
|
|
|
|
The error occurs on this line:
connection.Open()
|
|
|
|
|
Perhaps the machine doesn't have the Paradox driver installed?
|
|
|
|
|
Hi,
I have made an irregularly shaped control to which I want to add a drop shadow (like the one XP menus and the mouse cursor have). Is there any way to do this?
Thanks,
Ahmad
|
|
|
|
|
one way to do this (a bit clumsy dough) is just to duplicate the control put its color a bit darker (or total dark depending on what you want) and then put it behind the other control.
there's probably a beter way to do this but this is one way
perhaps an other way would be to create a usercontrol and draw the whole thing yourself
(put the region of the uc to the irregularly shaped path)
down side with this is that when users click the drop shadow it will fire the click event of the uc (but it is a bit less clumpsy then methode 1)
|
|
|
|
|
there is a problem in sql query.
there are following records of integer type in the table
2
3
4
5
6
7
8
in a paticular case i am getting fourth record i'e 5
now i want it's previous record i'e 4.
is it possible by the query.o i need to implement it progamatically.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
can u explain in brief ur question.
Exactly what do u want pls explain in brief.
|
|
|
|
|
She wants the previous record of a given record by ID.
i.e. if you have rows
1
3
5
7
and the given row was 7, she wants row 5.
|
|
|
|