Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB & printing problems

Status
Not open for further replies.

bobmorane

Technical User
Jul 2, 2002
38
FR
Hello
I've created an application which uses Crystal Reports 8.5 with VB6
I have some fields which require a user to enter values, and I use this code : report.fieldXXX.SetUnboundFieldSource (array(x))
(public report As New CrystalReport1(the name of the designer)
The 'fieldXXX' is a formula : when i create one, i left it empty and i save it
I also set an automatic print system with the .PrintOut False command

>>> My problem is that when this automatic print job is sent, only the formulas designed in the report are taken into account... the ones modified manually do not appear, although in the CRViewer I can see them
What did I miss ??? is it because i use formulas (i found out i could also use text fields) ?
Regards
bob :)
 
-update-
hum it seems to be more complicated than i thought :
at first i thought it came from the print hour : as some of the formulas are reseted every day, and the print job is sent @ midnight, i changed it so it was sent at 23:59:59 but i failed to solve the problem
then i tried to send a print job at any time from the CRViewer while the application was running (with its print button), and here it works....
but i really need the printing to be done automatically !!!!
i'll try to test some other solutions while i wait for a wise :) advice
regards
 
-last update-
ok i try with placing an text field and filling it with textXX.SetText(array(x)) but it didn't work
So i let it down for the moment, until someone find out how I could do
regards
bob
-end of posts- :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top