How can I set the paper size of a printer in VB? I've tried a couple different methods listed below. Please advice. Thanks in advance.
1) Using the OpenPrinter, SetPrinter API functions - this seems to only work if the user has admin privileges to that printer. In my case, giving admin...
I've used Ghostscript (free) with Redmon (free) port redirection with great success, although it requires a bit more tweeking to get up and running. You can print to .PDF as well as many other image formats... .bmp, .tif, .gif...
Thanks for the response Dan688.
I might consider the renaming option.
Also locking the folder will not work, because the user will not have access when running the application.
I have a .pdf file that is launched via my VB application. I want the user to have read access to this file via the application ONLY... no acces to the file outside the application. Any ideas?
I was thinking of having the network admin set up a new network userid with the proper permissions...
Is it possible to get bitmap images to show transparent on the tab control? What am I missing? My code is below. Thanks in advance.
void CSHCS_Params_Dlg::InitializeTabCtl(CTabCtrl * _tabTool)
{
TCITEM tcItem;
CImageList *imgl;
CBitmap bmp;
imgl = new CImageList()...
I'm using the WebBrowser control to view .pdf files within a VB6 form. I'm having performance issues when loading the files or navigating from file to file. At times, the performance is good. Could current internet traffic be a factor? I want it to always run offline, since these file are...
I use the Computer Management Console (similar to what Tom is using) which is found under Administative Tools in WinXP. If the VB app is served, I think you'll need admin priveleges to that server to view open files.
strongm: Thanks for the post. I am using the CDO reference (ie: CreateObject("mapi.session")). What is the preferred method in your opinion? I haven't seen to many examples accessing the API directly.
Craig: Thanks for your example. Worked great when testing on a local pc. But...
We are using the MAPI to email via a VB6 application. When using this method you have to provide a valid mail profile if you want to bypass the profile dialog. We have PCs setup with different default mail profile names(ie: "ms exchange settings", "outlook", ...). Is there...
Thanks for the reply Bob.
I was looking for a way to lauch an Access application without providing the install location (ie: c:\program files\ms office\...). I tried using the RunUntilFinished function with the ShellExecute api, but it did not work.
Any other suggestions.
How do I open an access application (.mde) from VB and wait until it finishes. Keep in mind I do not want to pass the install path of MS Access. The code below, which came from the FAQ section, works only with .EXE files. Please help. Thanks in advance.
Public Function ExecCmd(cmdline$)...
I have a class setup to open all database connections... with the connection stored in a property procedure. To be able to use these connections outside the class, I'd like to be able to do a property get.
Is this possible? Is anyone doing something similar?
Property Get Connection() As...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.