Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BarTender(How can i write print preview and start position)
Message
De
14/12/2011 02:07:17
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Produits tierce partie
Titre:
BarTender(How can i write print preview and start position)
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01531044
Message ID:
01531044
Vues:
795
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~~~
Répondre
Fil
Voir

Click here to load this message in the networking platform