Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a chart that is in the clipboard
Message
 
To
24/06/2003 13:51:56
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00799638
Message ID:
00803486
Views:
19
In addition to my previous, this works for me if I need to change the picture format to the option on the third position:


keyboard '{ALT+E}S{DNARROW}{DNARROW}{ENTER}{Ctrl+W}' plain clear


>I forgot to mention something
>
>Paste does'nt work but here's what works
>
>1) I do a MODI GENERAL MYCHART
>2) From the VFP menu I do a "Paste Special"
>3) If I select Picture (Metafile) it does'nt work but when I select Picture (DIB) it does.
>
>Do you know how I can do that kind of paste from within a VFP app?
>
>
>>Perhaps you need to wait until Chart is generated and process of coping to clipboard is completed.
>>*---------
>>wait window "Preparing Copy-Paste" timeout 5
>>create curs tempgen(storegraph G)
>>.....
>>*----------
>>
>>Hard to tell without details of your code.
>>
>>
>>>This seems to be simple enough but it does'nt work.
>>>
>>>After doing some tests here's what I found:
>>>
>>>I executed my app so that I generated a Bar Chart. By executing that app. the bar chart is copied to the clipboard.
>>>
>>>After that I executed the code you gave me as a prg
>>>
>>>
>>>create curs tempgen(storegraph G)
>>>append blank
>>>keyboard '{Ctrl+V}{Ctrl+W}' plain clear  &&paste from clipboard
>>>modi general storegraph
>>>
>>>That did'nt work. It resulted in an empty record.
>>>
>>>After that I opened MS Paint and made a paste. That gave me my bar chart.
>>>
>>>But VFP could'nt get it at that point.
>>>
>>>So from MS paint I did a copy (to copy to clipboard)
>>>
>>>After that I reexecuted the code and this time it worked.
>>>
>>>Anyone knows why the clipboard can't be read by VFP the first time but can after the bar chart is copied to it by MS paint?
>>>
>>>Could this be a problem caused by EditCopy method for msChart activex?
>>>
>>>How do I fix this?
>>>
>>>
>>>>Try to add this:
>>>>
>>>>create curs tempgen(storegraph G)
>>>>append blank
>>>>keyboard '{Ctrl+V}{Ctrl+W}' plain clear &&paste from clipboard
>>>>modi general storegraph
>>>>
>>>>Then you will be able to combine this field with another information in the report.
>>>>
>>>>>VFP6
>>>>>
>>>>>1. There is a chart in the clipboard
>>>>>2. I want to print that chart
>>>>>3. Is there a way to get that chart in a report and print it?
Previous
Reply
Map
View

Click here to load this message in the networking platform