Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BarTender(How can i write print preview and start position)
Message
From
14/12/2011 02:07:17
 
 
To
All
General information
Forum:
ASP.NET
Category:
Third party products
Title:
BarTender(How can i write print preview and start position)
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01531044
Message ID:
01531044
Views:
803
Hi all,
I use vb.net. I buy the BarTender version 9.4 SR3(Print Barcode Software) and reference it (COM dll).
I want to write a print preview but i saw the BarTender guide can not find print preview this function.
Only Most like Format.ExportPrintPreviewToImage(Directory, FileNameTemplate, FileType, Colors, DPI, backgroundColor, SaveOpts, IncludeMargins, IncludeBorder, Msgs)
But i use ExportPrintPreviewToImage() function return false, also can't print preview?
'Declare a BarTender application variable 

Dim btApp As BarTender.Application 

'Declare a BarTender format variable 

Dim btFormat As New BarTender.Format 

'Declare a BarTender messages variable 

Dim msgs As BarTender.Messages = Nothing

'Instantiate the BarTender application 

btApp = new BarTender.ApplicationClass

'Open a BarTender label format 

btFormat = btApp.Formats.Open("c:\Format1.btw")

'Export label format to a print preview 

Dim res As BarTender.BtPrintResult 

res = btFormat.ExportPrintPreviewToImage("c:\", "Label_%PageNumber%_Preview.jpg", "jpg", BarTender.BtColors.btColors24Bit, 200, 13117215, BarTender.BtSaveOptions.btSaveChanges, true, true, msgs)

'End the BarTender process 

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges) 
And second question is set the start position when print the BarCode label (A4 format)?
How can i write ...

Thank you~~~
Reply
Map
View

Click here to load this message in the networking platform