|
-
Aug 23rd, 2005, 04:15 PM
#1
Thread Starter
Hyperactive Member
can i print direct from the form ??
peaced be with you
i want to print direct form the form can i make this thing by crystal report 10
ex :
print application form without show the crystal report preview
thanks
In the name of allah , the beneficent , the merciful
Say (O Muhammad ): We believe in allah and that which is revealed unto us and that which was revealed unto abraham and ishmael and isaac and jacob and the tribes , and that which was vouchsafed unto moses and jesus and the prophets from their lord . we make no distinction between any of them , and unto him we have surrendered
---- Great Sites For You -------------------
If you want to know some small things about islam ?
-
Aug 24th, 2005, 06:15 AM
#2
Hyperactive Member
Re: can i print direct from the form ??
Which control u r using to connect Report with ur application. if u r using Crstal report Control then go to its proparty (Crystal Proparty) and click on general tab , u will get options like To Window, To Printer, To File, To MAPI, To Exchange.
Select To printer option for ur report destination & select ur report from brows button.
I hope this will work......
Allha Hafiz
On Error GoTo http://www.vbforums.com
Note :
1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.
-
Aug 25th, 2005, 02:11 AM
#3
Thread Starter
Hyperactive Member
Re: can i print direct from the form ??
peace be with you
dear shirishdawane
i am using the crystal viewer in my program only to view and print
but i want to print it direct form the app to printer
ex :
app >>>>>>>>>>>> crystal viwer >>>>>>>>>>> printer
app >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> printer
thanks
In the name of allah , the beneficent , the merciful
Say (O Muhammad ): We believe in allah and that which is revealed unto us and that which was revealed unto abraham and ishmael and isaac and jacob and the tribes , and that which was vouchsafed unto moses and jesus and the prophets from their lord . we make no distinction between any of them , and unto him we have surrendered
---- Great Sites For You -------------------
If you want to know some small things about islam ?
-
Aug 30th, 2005, 11:38 PM
#4
New Member
Re: can i print direct from the form ??
Try this on out
In Project reference select crystal report viewer or crystal report runtime library, whatever you are using.
Then here goes if you are using CR 4.6 or less
VB Code:
private sub CommandButton1_Click()
dim crp as "yourcrystalreport"
'---open connection for report--
'---set data path for report---
'--your report sql query goes here---
crp.printreport
end sub
God bless you my son................In the name of Jesus Christ peace be with you.....
-
Sep 6th, 2005, 12:50 PM
#5
Junior Member
Re: can i print direct from the form ??
Try this out!
Dim ReportToDisplay As New MyReport 'The object name of VB designer
ReportToDisplay.SelectPrinter "gtyjj", "ghgj", "LPT1"
ReportToDisplay.PrintOut
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|