473,480 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to control the filename generated by PDFCreator using VB6.0

2 New Member
I would to ask help from you guys regarding my problem with VB6.0 + PDFCreator. i've been doing VB6.0 for quite some time now but this current project of mine will generate reports in a PDF format and this is my first time with PDF. Here goes: Using my VB Apps, i want to control the filename generated by PDFCreator, which generates ''Microsoft Visual Basic as pdf filename, to the appropriate filename like 'Monthly Sales'. However, if i generate the file into MSWORD and generate PDF from MSWORD, the proper filename will be created by the PDFCreator.

thank you very much
Sep 19 '08 #1
2 7968
debasisdas
8,127 Recognized Expert Expert
can you please pass more information
Sep 19 '08 #2
mcolorblind
2 New Member
can you please pass more information
thanks debasisdas


here is my code:

<<<<<<<<< start of code snipet >>>>>>>>

Set Printer = Printers(PrinterIndex("PDFCreator"))
Y = 1440 * 0.4 '1440twips equals 1 inch
bM = (5.5 * 1440 - (1440 * 0.4)) '5.5 * 1440 to get 5.5 inch in twips

Printer.Font.Name = "Courier New"
Printer.Font.Size = "9"
While rs.EOF = False

Printer.CurrentY = Y
Printer.CurrentX = 1440 ' left margin at 1 In
Printer.Print rs!Lines
Y = Y + 185

If Left(UCase(rs!Lines), Len("STATUS:")) = UCase("STATUS:") Then
Y = 1440 * 0.4
Printer.NewPage
End If
rs.MoveNext

Wend

Printer.EndDoc

<<<<<<<<< end of code snipet >>>>>>>>

also, i have configure the PDFCreator to automatically save to my specification any print out.
Sep 21 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
6768
by: S.W. Rasmussen | last post by:
With the risk of being accused of multi-posting I would like to draw the attention to a serious visual basic/windows issue discussed in the microsoft.public.vb.bugs newsgroup. As pointed out below...
6
10688
by: Franco Lombardo | last post by:
Hi all, I'm running DB2 8.1.5 on Windows 2000 professional SP4. When I try to start Control Center, I see the splash screen for a while, then it closes and nothing else happens. It happens...
4
7438
by: theo | last post by:
Program flow...load file,then extract the xml text tags from the file,then the number of Xml tags retrieved from the file determines the number of dropdownlist controls instanciated in the...
4
4135
by: EvelynAnd Ethan | last post by:
Hi, ItemCommand event not firing from a dynamic user control ,WHERE A DATAGRID HAS BUTTON,when i click on the linkbutton first time the itemcommand event doesnt fire,second time event fires up ...
14
1429
by: Graham Blandford | last post by:
Hi there, A quickie I think... If I create a new class that inherits the values of a windows form component class, can there ever be a visual representation of this in the .Net IDE? E.g. if...
9
2709
by: Charts | last post by:
I use VS2005 to build a asp.net 2.0 project. I want to be able to click a button on the page and have a dialog window appear where I can navigate the folders to get hold of a file path to load...
5
3722
by: John Kotuby | last post by:
Hi all, This is my first time trying to creaet and use a custome Web Control in a Web Site project in ASP.NET 2.0 with VS 2005 and VB. I created the control in a separate Web Control Library...
12
4240
by: vj | last post by:
I am using Borland C++. I run a program which generates output data files, say 'Voltage.dat', 'Current.dat'. I have a variable in my code (say N), and for various values of N (for each value of...
0
1926
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7059
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6758
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7010
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3011
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.